From owner-svn-src-all@FreeBSD.ORG Mon Mar 19 23:04:21 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D149E106566B; Mon, 19 Mar 2012 23:04:21 +0000 (UTC) (envelope-from jpaetzel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BBA858FC17; Mon, 19 Mar 2012 23:04:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q2JN4Lhx090789; Mon, 19 Mar 2012 23:04:21 GMT (envelope-from jpaetzel@svn.freebsd.org) Received: (from jpaetzel@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q2JN4L7C090786; Mon, 19 Mar 2012 23:04:21 GMT (envelope-from jpaetzel@svn.freebsd.org) Message-Id: <201203192304.q2JN4L7C090786@svn.freebsd.org> From: Josh Paetzel Date: Mon, 19 Mar 2012 23:04:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r233220 - in stable/9/usr.sbin/pc-sysinstall: backend backend-partmanager X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2012 23:04:21 -0000 Author: jpaetzel Date: Mon Mar 19 23:04:21 2012 New Revision: 233220 URL: http://svn.freebsd.org/changeset/base/233220 Log: MFC: 232889 Make sure when creating new MBR partition it is set to active by default. Submitted by: kmoore Obtained from: PC-BSD Modified: stable/9/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh 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-partmanager/create-part.sh ============================================================================== --- stable/9/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh Mon Mar 19 22:59:19 2012 (r233219) +++ stable/9/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh Mon Mar 19 23:04:21 2012 (r233220) @@ -86,7 +86,12 @@ fi # If this is an empty disk, see if we need to create a new scheme for it gpart show ${DISK} >/dev/null 2>/dev/null if [ $? -eq 0 -a "${SLICENUM}" = "1" ] ; then - gpart create -s ${TYPE} ${DISK} + if [ "${TYPE}" = "mbr" -o "${TYPE}" = "MBR" ] ; then + flags="-s ${TYPE} -f active" + else + flags="-s ${TYPE}" + fi + gpart create ${flags} ${DISK} fi # If we have a starting block, use it Modified: stable/9/usr.sbin/pc-sysinstall/backend/functions-disk.sh ============================================================================== --- stable/9/usr.sbin/pc-sysinstall/backend/functions-disk.sh Mon Mar 19 22:59:19 2012 (r233219) +++ stable/9/usr.sbin/pc-sysinstall/backend/functions-disk.sh Mon Mar 19 23:04:21 2012 (r233220) @@ -641,7 +641,7 @@ init_mbr_full_disk() sleep 2 echo_log "Running gpart on ${_intDISK}" - rc_halt "gpart create -s mbr ${_intDISK}" + rc_halt "gpart create -s mbr -f active ${_intDISK}" # Lets figure out disk size in blocks # Get the cyl of this disk