]> git.proxmox.com Git - pve-installer.git/commitdiff
grub: install all efi binaries in fallback/default dir
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 22 Nov 2023 12:19:27 +0000 (13:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Nov 2023 12:29:30 +0000 (13:29 +0100)
else this fails with secureboot, where the entry point must be shim and not
grub.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Proxmox/Install.pm

index 8825699416475b1934527531db4fbb40e9473ce8..c99748c2c2a985f7910d69df2131b6353c5cf229 100644 (file)
@@ -605,8 +605,10 @@ sub prepare_grub_efi_boot_esp {
        }
        # also install fallback boot file (OVMF does not boot without)
        mkdir("$targetdir/boot/efi/EFI/BOOT");
-       syscmd("cp $targetdir/boot/efi/EFI/proxmox/grubx64.efi $targetdir/boot/efi/EFI/BOOT/BOOTx64.EFI") == 0 ||
+       syscmd("cp $targetdir/boot/efi/EFI/proxmox/*.efi $targetdir/boot/efi/EFI/BOOT/") == 0 ||
            die "unable to copy efi boot loader\n";
+       syscmd("mv $targetdir/boot/efi/EFI/BOOT/shimx64.efi $targetdir/boot/efi/EFI/BOOT/BOOTx64.efi") == 0 ||
+           die "unable to setup default efi boot loader\n";
     };
     my $err = $@;