]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix: provision: SecureBoot fixes
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 25 Jan 2022 13:42:12 +0000 (10:42 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 25 Jan 2022 13:42:12 +0000 (10:42 -0300)
share/hydractl/provision

index 8a154627241968db99cc607de2e1766a6c81c8ef..a088d7ec7f5236dfd323dbb9ee9744b06fe84d0b 100755 (executable)
@@ -651,15 +651,15 @@ if [ "$grub" == "y" ]; then
       grub_arch="$arch"
     fi
 
-    if [ "$secure_boot" == "y" ]; then
-      grub_arch="${grub_arch}-signed"
-    fi
-
     if [ "$uefi_update_nvram" == "n" ]; then
       grub_uefi_nvram="--no-nvram"
     fi
 
-    $APT_INSTALL grub-efi-${arch} -y
+    if [ "$secure_boot" == "y" ]; then
+      $APT_INSTALL grub-efi-${arch}-signed -y
+    else
+      $APT_INSTALL grub-efi-${arch} -y
+    fi
 
     # Make UEFI partition available
     hydra_sudo_run mkdir $WORK/boot/efi