From 939aeaad3cb85e339de940d37d6a961932a191a5 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Tue, 20 Jun 2023 13:45:12 +0200 Subject: [PATCH] install stage 1: fix grub installation --- install-stage1.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install-stage1.sh b/install-stage1.sh index 49c3bfd..ea0ae63 100644 --- a/install-stage1.sh +++ b/install-stage1.sh @@ -35,7 +35,7 @@ function yesno { } function run_in_target { - xchroot /mnt/target "$@" + echo "$@" | xchroot /mnt/target sh } clear @@ -208,7 +208,7 @@ fi #TODO timezone clear -echo "Set hardware clock to UTC? +echo "Is the hardware clock set to UTC? Most Unix/Linux systems set the clock in your computer to UTC and add the time zone on-the-fly. If you use Windows, you will want to answer no here. @@ -272,9 +272,9 @@ 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" -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-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'"