From f742a323f542747d793ca19ad2a2f92a42de74f1 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 17 Sep 2023 21:46:42 +0200 Subject: Fix UEFI boot when ISO was dd-ed to USB thumbdrive Since early 2019, when you dd-ed or cp-ed a live ISO directly to a USB stick, and you booted from this stick on a UEFI computer, you would end up in the GRUB commandline, because $prefix would not be defined and GRUB would be unable to find its files. My 2019 modification fixed PXE boot but broke this specific case of UEFI boot. And now it has finally been fixed after I had a brain fart. --- EFI/BOOT/grub-embedded.cfg | 3 +++ EFI/BOOT/grub.cfg | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 EFI/BOOT/grub.cfg diff --git a/EFI/BOOT/grub-embedded.cfg b/EFI/BOOT/grub-embedded.cfg index 917672f..cc2098e 100644 --- a/EFI/BOOT/grub-embedded.cfg +++ b/EFI/BOOT/grub-embedded.cfg @@ -1 +1,4 @@ search --file --no-floppy --set=root /EFI/BOOT/SLACKWARELIVE +if [ -e ($root)/EFI/BOOT/grub.cfg ]; then + set prefix=($root)/EFI/BOOT +fi diff --git a/EFI/BOOT/grub.cfg b/EFI/BOOT/grub.cfg deleted file mode 100644 index 63e7c80..0000000 --- a/EFI/BOOT/grub.cfg +++ /dev/null @@ -1 +0,0 @@ -source $prefix/menu/grub.cfg -- cgit v1.2.3