From 89f6f8abbd4b703ab12c0bc369898dbfd917a474 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 5 May 2021 13:33:04 +0200 Subject: [PATCH] mxgrub: Add target to grub install line in warning With GRUB also supporting EFI, the target has to be specified on systems booted with UEFI but without CSM. $ sudo grub-install --boot-directory=/boot /dev/sda Installing for x86_64-efi platform. grub-install: error: cannot find EFI directory. The line below works: sudo grub-install --target=i386-pc --boot-directory=/boot /dev/sda --- mxgrub/mxgrub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxgrub/mxgrub b/mxgrub/mxgrub index aa489b0..9296187 100755 --- a/mxgrub/mxgrub +++ b/mxgrub/mxgrub @@ -101,7 +101,7 @@ sub check_grub_installation { Consider updating the boot-loader with: - grub-install --boot-directory=/boot $root_dev[1] + grub-install --target=i386-pc --boot-directory=/boot $root_dev[1] EOF }