mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
Use gpart(8) to set the active boot partition.
This commit is contained in:
parent
126e94687d
commit
ac33b97078
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205584
|
@ -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 a new issue