X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=initchroot.sh;h=7edff438896ef27132e7a378de668c747510d47d;hb=36debc0ac2eddcc52f2d605f4dd06530091c4664;hp=d6571705bceb783159b332b824dd8c3a5c6fe4c2;hpb=d92506af5d462b3ce814abb5e982f95e5f74ae9b;p=xodist diff --git a/initchroot.sh b/initchroot.sh index d657170..7edff43 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -22,7 +22,7 @@ APT_SOURCES="deb http://http.us.debian.org/debian/ lenny main contrib non-free deb http://security.debian.org/ lenny/updates main contrib non-free" LOCAL_APT_MIRROR= -. functions.sh +. ./functions.sh usage() { @@ -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<${ROOT_DIR}/etc/apt/sources.list (chroot ${ROOT_DIR} aptitude update)