summaryrefslogtreecommitdiff
path: root/usr.sbin/pc-sysinstall
diff options
context:
space:
mode:
authorJosh Paetzel <jpaetzel@FreeBSD.org>2012-03-12 20:41:36 +0000
committerJosh Paetzel <jpaetzel@FreeBSD.org>2012-03-12 20:41:36 +0000
commit2bcfa25df8b3f30b1dba35f8b5ddcc88f547e604 (patch)
tree08bfa4911b83422b4237ab9a711c8b81844be345 /usr.sbin/pc-sysinstall
parent6ff44ffc53caa2d91d6e69b3b4df922ff22e7828 (diff)
downloadsrc-test2-2bcfa25df8b3f30b1dba35f8b5ddcc88f547e604.tar.gz
src-test2-2bcfa25df8b3f30b1dba35f8b5ddcc88f547e604.zip
Notes
Diffstat (limited to 'usr.sbin/pc-sysinstall')
-rwxr-xr-xusr.sbin/pc-sysinstall/backend-partmanager/create-part.sh7
-rwxr-xr-xusr.sbin/pc-sysinstall/backend/functions-disk.sh2
2 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh b/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh
index d0343b4dcb1d..5fe354033e32 100755
--- a/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh
+++ b/usr.sbin/pc-sysinstall/backend-partmanager/create-part.sh
@@ -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
diff --git a/usr.sbin/pc-sysinstall/backend/functions-disk.sh b/usr.sbin/pc-sysinstall/backend/functions-disk.sh
index 84534f9c39d5..0e89140d954a 100755
--- a/usr.sbin/pc-sysinstall/backend/functions-disk.sh
+++ b/usr.sbin/pc-sysinstall/backend/functions-disk.sh
@@ -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