Auto-enable 4k sector alignment when disk encryption is requested (it is

required in such a case). But don't prevent the user from pointing the
gun at his/her foot -- you can disable 4k alignment after enabling geli).

MFC after:	3 days
This commit is contained in:
dteske 2013-12-16 19:54:55 +00:00
parent 0276966f19
commit 2977cb4d97

View File

@ -1372,6 +1372,7 @@ while :; do
if [ "$ZFSBOOT_GELI_ENCRYPTION" ]; then
ZFSBOOT_GELI_ENCRYPTION=
else
ZFSBOOT_GNOP_4K_FORCE_ALIGN=1
ZFSBOOT_GELI_ENCRYPTION=1
fi
;;