vm: Add localhost alias to /etc/hosts

... or otherwise, some programs will hang for many secconds trying to resolve localhost.
Este commit está contenido en:
Joanna Rutkowska 2012-05-08 18:30:21 +02:00 cometido por Marek Marczykowski
padre 94979d87d1
commit 2d949bae4c
Se han modificado 2 ficheros con 2 adiciones y 2 borrados

Ver fichero

@ -26,7 +26,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
(grep -v "\<$name\>" /etc/hosts; echo "127.0.0.1 $name localhost") > /etc/hosts
fi
timezone=`/usr/bin/xenstore-read qubes-timezone 2> /dev/null`

Ver fichero

@ -52,7 +52,7 @@ done
name=`$XS_READ name`
if [ -n "$name" ]; then
hostname $name
(grep -v "\<$name\>" /etc/hosts; echo "127.0.0.1 $name") > /etc/hosts
(grep -v "\<$name\>" /etc/hosts; echo "127.0.0.1 $name localhost") > /etc/hosts
fi
timezone=`$XS_READ qubes-timezone 2> /dev/null`