svn commit: r235452 - head/usr.sbin/pc-sysinstall/backend

Josh Paetzel jpaetzel at FreeBSD.org
Mon May 14 18:04:00 UTC 2012


Author: jpaetzel
Date: Mon May 14 18:03:59 2012
New Revision: 235452
URL: http://svn.freebsd.org/changeset/base/235452

Log:
  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

Modified:
  head/usr.sbin/pc-sysinstall/backend/functions-disk.sh

Modified: head/usr.sbin/pc-sysinstall/backend/functions-disk.sh
==============================================================================
--- head/usr.sbin/pc-sysinstall/backend/functions-disk.sh	Mon May 14 17:00:32 2012	(r235451)
+++ head/usr.sbin/pc-sysinstall/backend/functions-disk.sh	Mon May 14 18:03:59 2012	(r235452)
@@ -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}"


More information about the svn-src-all mailing list