release: ensure enforce_chs sysctl is 0

We do not want CHS-based alignment for VM or SD card release images.

(Other images use makefs/mkimg, not kernel gpart and so do not depend
on this sysctl.)

Sponsored by:	The FreeBSD Foundation
Approved by:	re (gjb)
MFC after:	1 week
This commit is contained in:
Ed Maste 2022-07-19 16:47:49 -04:00
parent 711ee05918
commit 6b6367ba8f

View file

@ -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