diff options
author | jpaetzel <jpaetzel@FreeBSD.org> | 2012-05-14 18:03:59 +0000 |
---|---|---|
committer | jpaetzel <jpaetzel@FreeBSD.org> | 2012-05-14 18:03:59 +0000 |
commit | e17f34a5a3273ef94143954b441550b53648f636 (patch) | |
tree | 42b6c041d9bde1c20113ff9f2d8e96308ed1c286 /usr.sbin | |
parent | 54d3658ca76c2a9b484aa6fe05aa535f7a6c3a91 (diff) | |
download | FreeBSD-src-e17f34a5a3273ef94143954b441550b53648f636.zip FreeBSD-src-e17f34a5a3273ef94143954b441550b53648f636.tar.gz |
Set the MBR partition to active when doing a full disk MBR.
Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems
MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rwxr-xr-x | usr.sbin/pc-sysinstall/backend/functions-disk.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/pc-sysinstall/backend/functions-disk.sh b/usr.sbin/pc-sysinstall/backend/functions-disk.sh index e96ffb9..8e8cbfd 100755 --- a/usr.sbin/pc-sysinstall/backend/functions-disk.sh +++ b/usr.sbin/pc-sysinstall/backend/functions-disk.sh @@ -689,6 +689,9 @@ init_mbr_full_disk() echo_log "Cleaning up ${_intDISK}s1" rc_halt "dd if=/dev/zero of=${_intDISK}s1 count=1024" + # Make the partition active + rc_halt "gpart set -a active -i 1 ${_intDISK}" + if [ "$_intBOOT" = "bsd" ] ; then echo_log "Stamping boot0 on ${_intDISK}" rc_halt "gpart bootcode -b /boot/boot0 ${_intDISK}" |