From: Andres Salomon Date: Tue, 28 Oct 2008 05:20:00 +0000 (-0400) Subject: initchroot: set up /etc/hosts before using apt X-Git-Tag: v0.3~6 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?p=xodist;a=commitdiff_plain;h=244249e5bfc93aba930da7b77e0934e993810756 initchroot: set up /etc/hosts before using apt Signed-off-by: Andres Salomon --- diff --git a/initchroot.sh b/initchroot.sh index d657170..b9ee465 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -110,6 +110,21 @@ echo "Warning: Fake start-stop-daemon called, doing nothing" EOF chmod 755 ${ROOT_DIR}/sbin/start-stop-daemon +# set up hostname stuff +echo "debxo" > ${ROOT_DIR}/etc/hostname +cat >${ROOT_DIR}/etc/hosts< ${ROOT_DIR}/etc/hostname -cat >${ROOT_DIR}/etc/hosts<