[pve-devel] [RFC pve-kernel-meta 5/5] proxmox-boot: install grub in esp/EFI/BOOT/BOOTX64.EFI

Stoiko Ivanov s.ivanov at proxmox.com
Tue Feb 1 23:03:31 CET 2022


by passing the --removable option

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 bin/proxmox-boot-tool | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/proxmox-boot-tool b/bin/proxmox-boot-tool
index d8caa6b..72f77ed 100755
--- a/bin/proxmox-boot-tool
+++ b/bin/proxmox-boot-tool
@@ -152,7 +152,7 @@ init_bootloader() {
 
 	echo "Installing grub x86_64 target.."
 	grub_common_args="--boot-directory ${esp_mp} --no-floppy --bootloader-id=proxmox"
-	grub_efi_args="$grub_common_args --target=x86_64-efi --efi-directory=$esp_mp"
+	grub_efi_args="$grub_common_args --target=x86_64-efi --efi-directory=$esp_mp --removable"
 	if [ ! -d /sys/firmware/efi ]; then
 		grub_efi_args="$grub_efi_args --no-nvram"
 	fi
-- 
2.30.2






More information about the pve-devel mailing list