From 6365e3c22a34783c3ad4b4119bc54924ee37dfbc Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Tue, 27 Jun 2023 15:37:50 +0200 Subject: [PATCH] install stage 1: add more GRUB modules to be loaded by default no idea if this is even useful --- install-stage1.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install-stage1.sh b/install-stage1.sh index ad8197b..dd45807 100644 --- a/install-stage1.sh +++ b/install-stage1.sh @@ -183,7 +183,8 @@ echo "repository=$TARGET_MIRROR" > /mnt/target/etc/xbps.d/00-repository-main.con echo "%wheel ALL=(ALL:ALL) ALL" > /mnt/target/etc/sudoers.d/wheel_as_sudo_group.conf -# TODO: add overlayfs scripts (bootup and shutdown) +# TODO: add overlayfs scripts (bootup) + mkdir -p /mnt/target/opt/void-usb chmod 755 /mnt/target/opt/void-usb @@ -282,7 +283,7 @@ echo "GRUB has been deliberately installed to a non-standard location. This avoids default kernel hooks breaking the custom config." > /mnt/target/boot/efi/LOADER/README.TXT # 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" +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'"