]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix: provision: minor grub fixes
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 25 Jan 2022 21:54:57 +0000 (18:54 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 25 Jan 2022 21:54:57 +0000 (18:54 -0300)
share/hydractl/provision

index 02aa4d01440040c2ff9b405ecaf739643169b709..bd9303b98559e3146e4e09750fc95bc0645af133 100755 (executable)
@@ -706,7 +706,7 @@ EOF
     cat <<-EOF | $SUDO tee $WORK/etc/default/grub.d/fde.cfg > /dev/null
 # Full Disk Encryption Support
 GRUB_ENABLE_CRYPTODISK="y"
-GRUB_PRELOAD_MODULES="lvm cryptodisk mdraid1x"
+GRUB_PRELOAD_MODULES="lvm crypto cryptodisk luks mdraid1x"
 EOF
 
     hydra_sudo_run chroot $WORK/ update-grub
@@ -719,7 +719,7 @@ EOF
   if [ "$boot_mode" == "bios" ]; then
     hydra_sudo_run chroot $WORK/ grub-install --recheck --force $device
   else
-    grub_opts"$grub_uefi_nvram $grub_uefi_secure_boot --bootloader-id=GRUB"
+    grub_opts="$grub_uefi_nvram $grub_uefi_secure_boot --bootloader-id=GRUB"
 
     hydra_sudo_run chroot $WORK/ grub-install --target=${grub_arch}-efi \
                                               --efi-directory=/boot/efi \