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

This commit is contained in:
Poul-Henning Kamp 2010-03-24 11:21:33 +00:00
parent 126e94687d
commit ac33b97078
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205584
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}