From 244249e5bfc93aba930da7b77e0934e993810756 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Tue, 28 Oct 2008 01:20:00 -0400 Subject: [PATCH] initchroot: set up /etc/hosts before using apt Signed-off-by: Andres Salomon --- initchroot.sh | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) 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<