diff --git a/release/tools/arm.subr b/release/tools/arm.subr index 25d4640cc26..d07dbb41b48 100644 --- a/release/tools/arm.subr +++ b/release/tools/arm.subr @@ -63,6 +63,10 @@ umount_loop() { } arm_create_disk() { + if [ $(sysctl -n kern.geom.part.mbr.enforce_chs) != 0 ]; then + return 1 + fi + # Create the target raw file and temporary work directory. chroot ${CHROOTDIR} gpart create -s ${PART_SCHEME} ${mddev} if [ "${PART_SCHEME}" = "GPT" ]; then