squeeze works now, preseed.cfg works great

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent ddcf4e1aa4
commit 327dcbf08c

@ -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

@ -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

@ -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

Loading…
Cancel
Save