X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=initchroot.sh;h=0bb249f4f2c6af8d1eb9e831564e40df9c0dc9ca;hb=44ba7f60c073767f5ea7c12fe83fc8de6df5fc0d;hp=3f67d5f177363416b5190f3720777af3ad9ed9f6;hpb=3999439a05cec313e8568f60e1aff22a44c19270;p=xodist diff --git a/initchroot.sh b/initchroot.sh index 3f67d5f..0bb249f 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -47,6 +47,7 @@ check_for_cmds debootstrap || exit 1 debootstrap --arch i386 lenny ${ROOT_DIR} http://http.us.debian.org/debian mount -t proc proc ${ROOT_DIR}/proc mount -t devpts devpts ${ROOT_DIR}/dev/pts +mkdir ${ROOT_DIR}/ofw # allow daemons to be installed without breaking mv ${ROOT_DIR}/sbin/start-stop-daemon ${ROOT_DIR}/sbin/start-stop-daemon.REAL @@ -73,11 +74,26 @@ EOF # set up base system echo "en_US.UTF-8 UTF-8" >${ROOT_DIR}/etc/locale.gen (chroot ${ROOT_DIR} aptitude install -y locales) + k=$(wget -O- http://queued.mit.edu/~dilinger/builds-master/ | sed -ne 's/.*href="\(.\+\)_i386.deb".*/\1_i386.deb/p' | tail -n1) wget -O ${ROOT_DIR}/${k} http://queued.mit.edu/~dilinger/builds-master/${k} (chroot ${ROOT_DIR} dpkg -i /${k}) rm -f ${ROOT_DIR}/${k} +echo "debxo" > ${ROOT_DIR}/etc/hostname +cat >${ROOT_DIR}/etc/hosts<${ROOT_DIR}/etc/gconf/2/local-defaults.path<