From 5a361d2af4d781ffc942db2527c0ee5d2167a2d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 22 Nov 2023 13:19:27 +0100 Subject: [PATCH] grub: install all efi binaries in fallback/default dir MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit else this fails with secureboot, where the entry point must be shim and not grub. Signed-off-by: Fabian Grünbichler --- Proxmox/Install.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm index 8825699..c99748c 100644 --- a/Proxmox/Install.pm +++ b/Proxmox/Install.pm @@ -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 = $@; -- 2.39.5