Use gpart(8) to set the active boot partition.
This commit is contained in:
parent
62025cefc4
commit
dc22037ebf
@ -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}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user