From bd62a8273efc016271be65d1365e2297a901cb93 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 23 Nov 2006 22:16:59 +0000 Subject: [PATCH] * Quick hack to allow localhost to be looked up (NIXOS-41). svn path=/nixu/trunk/; revision=7100 --- test/boot-stage-2-init.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/boot-stage-2-init.sh b/test/boot-stage-2-init.sh index a6295dfc92a..5fd302a6835 100644 --- a/test/boot-stage-2-init.sh +++ b/test/boot-stage-2-init.sh @@ -92,6 +92,11 @@ if ! test -e /etc/group; then fi +# We need "localhost" (!!! destructive hack for NIXOS-41). +echo "127.0.0.1 localhost" > /etc/localhost +echo "hosts: files dns" > /etc/nsswitch.conf + + # Set up the Upstart jobs. export UPSTART_CFG_DIR=/etc/event.d