Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2012 15:20:21 +0000 (UTC)
From:      Josh Paetzel <jpaetzel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r235551 - stable/9/usr.sbin/pc-sysinstall/backend
Message-ID:  <201205171520.q4HFKLaw004563@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jpaetzel
Date: Thu May 17 15:20:21 2012
New Revision: 235551
URL: http://svn.freebsd.org/changeset/base/235551

Log:
  MFC: 235452
  
  Set the MBR partition to active when doing a full disk MBR.
  
  Submitted by:	kmoore
  Obtained from:	PC-BSD
  Sponsored by:	iXsystems

Modified:
  stable/9/usr.sbin/pc-sysinstall/backend/functions-disk.sh
Directory Properties:
  stable/9/usr.sbin/pc-sysinstall/   (props changed)

Modified: stable/9/usr.sbin/pc-sysinstall/backend/functions-disk.sh
==============================================================================
--- stable/9/usr.sbin/pc-sysinstall/backend/functions-disk.sh	Thu May 17 15:03:16 2012	(r235550)
+++ stable/9/usr.sbin/pc-sysinstall/backend/functions-disk.sh	Thu May 17 15:20:21 2012	(r235551)
@@ -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}"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205171520.q4HFKLaw004563>