bsdinstall zfsboot: Don't override ZFSBOOT_FORCE_4K_SECTORS if it is null.

Only set a default value of 1 if the shell variable is unset.  This allows
installer scripts to disable the variable.

PR:		274513
Reported by:	Albin "a12l" Otterhäll <bugs.freebsd.org@a12l.xyz>
Differential Revision:	https://reviews.freebsd.org/D42319
This commit is contained in:
John Baldwin 2023-11-18 11:18:29 -08:00
parent 3eed4803f9
commit de82aed119

View file

@ -71,7 +71,7 @@ f_include $BSDCFG_SHARE/variable.subr
#
# Should we use sysctl(8) vfs.zfs.min_auto_ashift=12 to force 4K sectors?
#
: ${ZFSBOOT_FORCE_4K_SECTORS:=1}
: ${ZFSBOOT_FORCE_4K_SECTORS=1}
#
# Should we use geli(8) to encrypt the drives?