You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local install_grub_cmdline="grub-install --target=${UEFI_GRUB_TARGET} --no-nvram --removable"# nvram is global to the host, even across chroot. take care.
168
+
local install_grub_cmdline="grub-install --target=${UEFI_GRUB_TARGET} --efi-directory=${UEFI_MOUNT_POINT} --no-nvram --removable"# nvram is global to the host, even across chroot. take care.
Copy file name to clipboardExpand all lines: lib/functions/configuration/main-config.sh
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -169,8 +169,8 @@ function do_main_configuration() {
169
169
# Support for LUKS / cryptroot
170
170
if [[ $CRYPTROOT_ENABLE== yes ]];then
171
171
enable_extension "fs-cryptroot-support"# add the tooling needed, cryptsetup
172
-
if [[ -z$CRYPTROOT_PASSPHRASE ]];then# a passphrase is mandatory if rootfs encryption is enabled
173
-
exit_with_error "Root encryption is enabled but CRYPTROOT_PASSPHRASE is not set"
172
+
if [[ -z$CRYPTROOT_PASSPHRASE ]]&& [[ -z$CRYPTROOT_AUTOUNLOCK ]];then# a passphrase is mandatory if rootfs encryption is enabled, unless CRYPTROOT_AUTOUNLOCK is wanted
173
+
exit_with_error "Root encryption is enabled but CRYPTROOT_PASSPHRASE or CRYPTROOT_AUTOUNLOCK is not set"
174
174
fi
175
175
[[ -z$CRYPTROOT_MAPPER ]] && CRYPTROOT_MAPPER="armbian-root"# TODO: fixed name can't be used for parallel image building (rpardini: ?)
0 commit comments