vm: add VMNAME entry to /etc/hosts (#384)

This commit is contained in:
Marek Marczykowski 2011-12-05 13:35:46 +01:00
parent 0d766a3184
commit 714054738f

View File

@ -24,6 +24,7 @@ start()
# because it makes some of the pre-created dotfiles invalid (e.g. .kde/cache-<hostname>)
# (let's be frank: nobody's gonna use xterm on DispVM)
hostname $name
(grep -v "\<$name\>" /etc/hosts; echo "127.0.0.1 $name") > /etc/hosts
fi
# Set IP address again (besides action in udev rules); this is needed by