mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
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:
parent
711ee05918
commit
6b6367ba8f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue