From: Andres Salomon Date: Tue, 14 Oct 2008 22:27:21 +0000 (-0400) Subject: initchroot: update kernel and custom initramfs-tools X-Git-Tag: v0.2~23 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f30f58b9da52390e9bd7b3d9dd27414eabe06b74;p=xodist initchroot: update kernel and custom initramfs-tools This kernel has the majority of things built as a module, and uses an initrd. Some initramfs customizations are necessary, so provide a custom initramfs-tools for now. Signed-off-by: Andres Salomon --- diff --git a/initchroot.sh b/initchroot.sh index 1e67658..c7de2d4 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -133,12 +133,16 @@ EOF 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) +k="http://lunge.mit.edu/~dilinger/debxo-0.2/initramfs-tools_0.92l.1_all.deb + http://lunge.mit.edu/~dilinger/debxo-0.2/linux-2.6.25.15_2.6.25.15-68_i386.deb" mkdir -p cache -wget --continue -O cache/${k} http://queued.mit.edu/~dilinger/builds-master/${k} -cp cache/${k} ${ROOT_DIR}/${k} -(chroot ${ROOT_DIR} dpkg -i /${k}) -rm -f ${ROOT_DIR}/${k} +for i in $k; do + pkg=$(basename ${i}) + wget --continue -O cache/${pkg} ${i} + cp cache/${pkg} ${ROOT_DIR}/${pkg} + (chroot ${ROOT_DIR} dpkg -i /${pkg}) + rm -f ${ROOT_DIR}/${k} +done # ensure certain modules get loaded during boot cat >>${ROOT_DIR}/etc/modules<