diff options
author | phk <phk@FreeBSD.org> | 2010-03-24 11:21:33 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2010-03-24 11:21:33 +0000 |
commit | dc22037ebfb53ece7a3ccf63b97a6b61362364b3 (patch) | |
tree | 581bbc29177fe16db3f806799377a2f5a0e919cd /tools | |
parent | 62025cefc4fe951e5e79ed7283b673f0f2c7e1d6 (diff) | |
download | FreeBSD-src-dc22037ebfb53ece7a3ccf63b97a6b61362364b3.zip FreeBSD-src-dc22037ebfb53ece7a3ccf63b97a6b61362364b3.tar.gz |
Use gpart(8) to set the active boot partition.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/nanobsd/Files/root/updatep1 | 2 | ||||
-rw-r--r-- | tools/tools/nanobsd/Files/root/updatep2 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/tools/nanobsd/Files/root/updatep1 b/tools/tools/nanobsd/Files/root/updatep1 index 6e094fa..6b83de5 100644 --- a/tools/tools/nanobsd/Files/root/updatep1 +++ b/tools/tools/nanobsd/Files/root/updatep1 @@ -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} diff --git a/tools/tools/nanobsd/Files/root/updatep2 b/tools/tools/nanobsd/Files/root/updatep2 index b9067eb..fc5312b 100644 --- a/tools/tools/nanobsd/Files/root/updatep2 +++ b/tools/tools/nanobsd/Files/root/updatep2 @@ -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} |