From 327dcbf08c41de9794c8fa5efea3bf53c634cbd0 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Thu, 30 Dec 2010 10:39:46 -0600 Subject: [PATCH] squeeze works now, preseed.cfg works great Signed-off-by: Robert Nelson --- mk_mmc.sh | 15 +-------------- scripts/squeeze-preseed.cfg | 16 ++++++++++++++++ scripts/squeeze-tweaks.diff | 4 ++-- 3 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 scripts/squeeze-preseed.cfg diff --git a/mk_mmc.sh b/mk_mmc.sh index 08818db..28e992f 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -87,13 +87,6 @@ case "$DIST" in squeeze) wget --directory-prefix=${TEMPDIR}/dl/${DIST} http://ftp.debian.org/debian/dists/${DIST}/main/installer-armel/current/images/versatile/netboot/initrd.gz #wget -c --directory-prefix=${DIR}/dl/${DIST} http://ftp.debian.org/debian/dists/${DIST}/main/installer-armel/current/images/versatile/netboot/initrd.gz - #wget -c --directory-prefix=${DIR}/dl/${DIST} http://ftp.debian.org/debian/pool/main/p/parted/parted_2.3-5_armel.deb - #wget -c --directory-prefix=${DIR}/dl/${DIST} http://ftp.debian.org/debian/pool/main/p/parted/libparted0debian1_2.3-5_armel.deb - #wget -c --directory-prefix=${DIR}/dl/${DIST} http://ftp.us.debian.org/debian/pool/main/r/readline6/libreadline6_6.1-3_armel.deb - #wget -c --directory-prefix=${DIR}/dl/${DIST} http://ftp.us.debian.org/debian/pool/main/n/ncurses/libncurses5_5.7+20100313-4_armel.deb - #wget -c --directory-prefix=${DIR}/dl/${DIST} http://ftp.us.debian.org/debian/pool/main/l/lvm2/libdevmapper1.02.1_1.02.48-4_armel.deb - #wget -c --directory-prefix=${DIR}/dl/${DIST} http://ftp.us.debian.org/debian/pool/main/libs/libselinux/libselinux1_2.0.96-1_armel.deb - #wget -c --directory-prefix=${DIR}/dl/${DIST} http://ftp.us.debian.org/debian/pool/main/u/udev/libudev0_164-3_armel.deb ;; esac @@ -294,13 +287,7 @@ case "$DIST" in squeeze) sudo cp -v ${DIR}/scripts/e2fsck.conf ${TEMPDIR}/initrd-tree/etc/e2fsck.conf sudo chmod a+x ${TEMPDIR}/initrd-tree/usr/lib/finish-install.d/08rcn-omap -# sudo dpkg -x ${DIR}/dl/${DIST}/parted_2.3-5_armel.deb ${TEMPDIR}/initrd-tree -# sudo dpkg -x ${DIR}/dl/${DIST}/libparted0debian1_2.3-5_armel.deb ${TEMPDIR}/initrd-tree -# sudo dpkg -x ${DIR}/dl/${DIST}/libreadline6_6.1-3_armel.deb ${TEMPDIR}/initrd-tree -# sudo dpkg -x ${DIR}/dl/${DIST}/libncurses5_5.7+20100313-4_armel.deb ${TEMPDIR}/initrd-tree -# sudo dpkg -x ${DIR}/dl/${DIST}/libdevmapper1.02.1_1.02.48-4_armel.deb ${TEMPDIR}/initrd-tree -# sudo dpkg -x ${DIR}/dl/${DIST}/libselinux1_2.0.96-1_armel.deb ${TEMPDIR}/initrd-tree -# sudo dpkg -x ${DIR}/dl/${DIST}/libudev0_164-3_armel.deb ${TEMPDIR}/initrd-tree + sudo cp -v ${DIR}/scripts/${DIST}-preseed.cfg ${TEMPDIR}/initrd-tree/preseed.cfg ;; esac diff --git a/scripts/squeeze-preseed.cfg b/scripts/squeeze-preseed.cfg new file mode 100644 index 0000000..5aa0ae1 --- /dev/null +++ b/scripts/squeeze-preseed.cfg @@ -0,0 +1,16 @@ +# Controls whether to use NTP to set the clock during the install +d-i clock-setup/ntp boolean true + +# During installations from serial console, the regular virtual consoles +# (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next +# line to prevent this. +d-i finish-install/keep-consoles boolean true + +# Avoid that last message about the install being complete. +d-i finish-install/reboot_in_progress note + +# This command is run just before the install finishes, but when there is +# still a usable /target directory. You can chroot to /target and use it +# directly, or use the apt-install and in-target commands to easily install +# packages and run commands in the target system. +d-i preseed/late_command string apt-install parted; in-target /sbin/parted /dev/mmcblk0 set 1 boot on diff --git a/scripts/squeeze-tweaks.diff b/scripts/squeeze-tweaks.diff index 3b88e37..6212ad4 100644 --- a/scripts/squeeze-tweaks.diff +++ b/scripts/squeeze-tweaks.diff @@ -14,8 +14,8 @@ index 0000000..6d06fc7 + #cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr + #rm -f /tmp/mmc/uInitrd.net + #sync -+ apt-get -y install parted -+ /target/sbin/parted /dev/mmcblk0 set 1 boot on ++ ++ + + mkdir -p /target/boot/uboot + echo "/dev/mmcblk0p1 /boot/uboot auto defaults 0 0" >> /target/etc/fstab