X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=initchroot.sh;h=0bb249f4f2c6af8d1eb9e831564e40df9c0dc9ca;hb=44ba7f60c073767f5ea7c12fe83fc8de6df5fc0d;hp=2caef4b9d0aaa6cbba36d767578f4f376e14c771;hpb=26d6e273fdfcf12b3a2cd2307a9ddd70d93e7743;p=xodist diff --git a/initchroot.sh b/initchroot.sh index 2caef4b..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,16 +74,64 @@ 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/X11/xorg.conf<${ROOT_DIR}/etc/gconf/2/local-defaults.path<