move: parted set boot flag to finish-install.sh script

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent 983ff2a30b
commit ae4285fea0

@ -11,6 +11,13 @@ if [ ! -d /boot/uboot/backup/ ] ; then
fi
ls -lh /boot/uboot/* >/boot/uboot/backup/file_list.log
#Set boot flag on: /dev/mmcblk0:
if [ -f /sbin/parted ] ; then
/sbin/parted /dev/mmcblk0 set 1 boot on || true
else
echo "ERROR: [/sbin/parted /dev/mmcblk0 set 1 boot on] failed" >> /boot/uboot/backup/install.log
fi
#Find Target Partition and FileSystem
if [ -f /etc/mtab ] ; then
FINAL_PART=$(mount | grep /dev/ | grep -v devpts | grep " / " | awk '{print $1}')

@ -46,7 +46,7 @@ d-i partman-auto/disk string /dev/mmcblk0
d-i partman-auto/expert_recipe_file string /partition_recipe
# Individual additional packages to install
d-i pkgsel/include string u-boot-tools pastebinit initramfs-tools wget linux-firmware linux-firmware-nonfree ntpdate bash devmem2 fbset
d-i pkgsel/include string bash devmem2 fbset initramfs-tools ntpdate parted pastebinit u-boot-tools wget
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
@ -65,10 +65,3 @@ 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 ;

@ -46,7 +46,7 @@ d-i partman-auto/disk string /dev/mmcblk0
d-i partman-auto/expert_recipe_file string /partition_recipe
# Individual additional packages to install
d-i pkgsel/include string u-boot-tools pastebinit initramfs-tools wget linux-firmware linux-firmware-nonfree ntpdate bash devmem2 fbset
d-i pkgsel/include string bash devmem2 fbset initramfs-tools ntpdate parted pastebinit u-boot-tools wget
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
@ -65,10 +65,3 @@ 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 ;

@ -46,7 +46,7 @@ d-i partman-auto/disk string /dev/mmcblk0
d-i partman-auto/expert_recipe_file string /partition_recipe
# Individual additional packages to install
d-i pkgsel/include string u-boot-tools pastebinit initramfs-tools wget linux-firmware linux-firmware-nonfree ntpdate bash devmem2 fbset
d-i pkgsel/include string bash devmem2 fbset initramfs-tools ntpdate parted pastebinit u-boot-tools wget
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
@ -65,10 +65,3 @@ 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 ;

@ -46,7 +46,7 @@ d-i partman-auto/disk string /dev/mmcblk0
d-i partman-auto/expert_recipe_file string /partition_recipe
# Individual additional packages to install
d-i pkgsel/include string u-boot-tools pastebinit initramfs-tools wget linux-firmware linux-firmware-nonfree ntpdate bash devmem2 fbset
d-i pkgsel/include string bash devmem2 fbset initramfs-tools ntpdate parted pastebinit u-boot-tools wget
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
@ -65,10 +65,3 @@ 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 ;

@ -41,7 +41,7 @@ d-i partman-auto/disk string /dev/mmcblk0
d-i partman-auto/expert_recipe_file string /partition_recipe
# Individual additional packages to install
d-i pkgsel/include string uboot-mkimage pastebinit initramfs-tools wget firmware-linux ntpdate bash fbset
d-i pkgsel/include string bash fbset initramfs-tools ntpdate pastebinit parted uboot-mkimage wget
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
@ -58,10 +58,3 @@ 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 ;

@ -11,6 +11,13 @@ if [ ! -d /boot/uboot/backup/ ] ; then
fi
ls -lh /boot/uboot/* >/boot/uboot/backup/file_list.log
#Set boot flag on: /dev/mmcblk0:
if [ -f /sbin/parted ] ; then
/sbin/parted /dev/mmcblk0 set 1 boot on || true
else
echo "ERROR: [/sbin/parted /dev/mmcblk0 set 1 boot on] failed" >> /boot/uboot/backup/install.log
fi
#Find Target Partition and FileSystem
if [ -f /etc/mtab ] ; then
FINAL_PART=$(mount | grep /dev/ | grep -v devpts | grep " / " | awk '{print $1}')

@ -3,11 +3,6 @@
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
#Make sure we get Wheezy as 20120712 was picking up sid...
#This bug, looked like a server issue, so it may just disapear on the next britney run...
d-i mirror/codename string wheezy
d-i mirror/suite string wheezy
#Removes the prompt about missing modules:
# Continue without installing a kernel?
d-i base-installer/kernel/skip-install boolean true
@ -38,7 +33,7 @@ d-i partman-auto/disk string /dev/mmcblk0
d-i partman-auto/expert_recipe_file string /partition_recipe
# Individual additional packages to install
d-i pkgsel/include string uboot-mkimage pastebinit initramfs-tools wget firmware-linux ntpdate bash fbset
d-i pkgsel/include string bash fbset initramfs-tools ntpdate parted pastebinit u-boot-tools wget
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
@ -55,10 +50,3 @@ 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 ;

Loading…
Cancel
Save