summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pc-sysinstall
diff options
context:
space:
mode:
authorjpaetzel <jpaetzel@FreeBSD.org>2012-05-14 18:03:59 +0000
committerjpaetzel <jpaetzel@FreeBSD.org>2012-05-14 18:03:59 +0000
commite17f34a5a3273ef94143954b441550b53648f636 (patch)
tree42b6c041d9bde1c20113ff9f2d8e96308ed1c286 /usr.sbin/pc-sysinstall
parent54d3658ca76c2a9b484aa6fe05aa535f7a6c3a91 (diff)
downloadFreeBSD-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/pc-sysinstall')
-rwxr-xr-xusr.sbin/pc-sysinstall/backend/functions-disk.sh3
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}"
OpenPOWER on IntegriCloud