From e17f34a5a3273ef94143954b441550b53648f636 Mon Sep 17 00:00:00 2001 From: jpaetzel Date: Mon, 14 May 2012 18:03:59 +0000 Subject: 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 --- usr.sbin/pc-sysinstall/backend/functions-disk.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.sbin/pc-sysinstall') 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}" -- cgit v1.1