From 257f70ebe8106dedb5ca5912e025dc81db218a14 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Thu, 29 Jun 2023 13:19:18 +0200 Subject: [PATCH] install stage 1: fix GRUB on EFI (the manuals lied to me !!!) --- install-stage1.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-stage1.sh b/install-stage1.sh index 589a4b8..b7f0506 100644 --- a/install-stage1.sh +++ b/install-stage1.sh @@ -306,8 +306,8 @@ This avoids default kernel hooks breaking the custom config." > /mnt/target/boot # no idea if any of these are even necessary/relevant but it can’t hurt... TARGET_PRELOAD_GRUB_MODULES="usb usbms uhci ehci ohci part_gpt f2fs ahci ata pata" run_in_target grub-install --target=i386-pc --boot-directory=/boot/efi/LOADER --disk-module=native --modules="'$TARGET_PRELOAD_GRUB_MODULES'" "'/dev/$TARGET_DISK'" -run_in_target grub-install --target=i386-efi --boot-directory=/boot/efi/LOADER --efi-directory=/boot/efi --removable --no-nvram --modules="'$TARGET_PRELOAD_GRUB_MODULES'" "'/dev/$TARGET_DISK'" -run_in_target grub-install --target=x86_64-efi --boot-directory=/boot/efi/LOADER --efi-directory=/boot/efi --removable --no-nvram --modules="'$TARGET_PRELOAD_GRUB_MODULES'" "'/dev/$TARGET_DISK'" +run_in_target grub-install --target=i386-efi --boot-directory=/boot/efi/LOADER --disk-module=native --efi-directory=/boot/efi --removable --no-nvram --modules="'$TARGET_PRELOAD_GRUB_MODULES'" "'/dev/$TARGET_DISK'" +run_in_target grub-install --target=x86_64-efi --boot-directory=/boot/efi/LOADER --disk-module=native --efi-directory=/boot/efi --removable --no-nvram --modules="'$TARGET_PRELOAD_GRUB_MODULES'" "'/dev/$TARGET_DISK'" wget --output-document=/mnt/target/opt/void-usb/grub-config https://lostcave.ddnss.de/git/BodgeMaster/void-minecraft-usb/raw/branch/master/opt/grub-config chmod 744 /mnt/target/opt/void-usb/grub-config