summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall
diff options
context:
space:
mode:
authorallanjude <allanjude@FreeBSD.org>2016-05-24 00:23:39 +0000
committerallanjude <allanjude@FreeBSD.org>2016-05-24 00:23:39 +0000
commit9ae9e7f9e06dc896592419dd2eb12935a3422395 (patch)
treeda116920ac52555268b0fd807efe9391dadb8119 /usr.sbin/bsdinstall
parent06f220e4c33a78e5bac3dbd989b8cf7d2c9a2750 (diff)
downloadFreeBSD-src-9ae9e7f9e06dc896592419dd2eb12935a3422395.zip
FreeBSD-src-9ae9e7f9e06dc896592419dd2eb12935a3422395.tar.gz
Only set kern.geom.part.mbr.enforce_chs=0 once, instead of once per disk
Sponsored by: ScaleEngine Inc.
Diffstat (limited to 'usr.sbin/bsdinstall')
-rwxr-xr-xusr.sbin/bsdinstall/scripts/zfsboot2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/scripts/zfsboot b/usr.sbin/bsdinstall/scripts/zfsboot
index 657ea11..80e0614 100755
--- a/usr.sbin/bsdinstall/scripts/zfsboot
+++ b/usr.sbin/bsdinstall/scripts/zfsboot
@@ -806,7 +806,6 @@ zfs_create_diskpart()
if [ "$ZFSBOOT_FORCE_4K_SECTORS" ]; then
align_small="-a 4k"
align_big="-a 1m"
- sysctl kern.geom.part.mbr.enforce_chs=0
fi
case "$ZFSBOOT_PARTITION_SCHEME" in
@@ -1133,6 +1132,7 @@ zfs_create_boot()
f_dprintf "$funcname: With 4K sectors..."
f_eval_catch $funcname sysctl "$SYSCTL_ZFS_MIN_ASHIFT_12" \
|| return $FAILURE
+ sysctl kern.geom.part.mbr.enforce_chs=0
fi
local n=0
for disk in $disks; do
OpenPOWER on IntegriCloud