Use gpart(8) to set the active boot partition.

This commit is contained in:
phk 2010-03-24 11:21:33 +00:00
parent 62025cefc4
commit dc22037ebf
2 changed files with 2 additions and 2 deletions

View File

@ -51,4 +51,4 @@ dd of=/dev/${NANO_DRIVE}s1 obs=64k
# Check that it worked
fsck_ffs -n /dev/${NANO_DRIVE}s1a
boot0cfg -s 1 -v ${NANO_DRIVE}
gpart set -a active -i 1 ${NANO_DRIVE}

View File

@ -58,4 +58,4 @@ sed -i "" "s/${NANO_DRIVE}s1/${NANO_DRIVE}s2/" /mnt/conf/base/etc/fstab
sed -i "" "s/${NANO_DRIVE}s1/${NANO_DRIVE}s2/" /mnt/etc/fstab
umount /mnt
trap 1 2 15 EXIT
boot0cfg -s 2 -v ${NANO_DRIVE}
gpart set -a active -i 2 ${NANO_DRIVE}