install stage 1: fix grub installation

master
BodgeMaster 2023-06-20 13:45:12 +02:00
parent 4ad24cd144
commit 939aeaad3c
1 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ function yesno {
} }
function run_in_target { function run_in_target {
xchroot /mnt/target "$@" echo "$@" | xchroot /mnt/target sh
} }
clear clear
@ -208,7 +208,7 @@ fi
#TODO timezone #TODO timezone
clear 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 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. 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 cant hurt... # no idea if any of these are even necessary/relevant but it cant 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"
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-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=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=x86_64-efi --boot-directory=/boot/efi/LOADER --efi-directory=/boot/efi --removable --no-nvram --modules="'$TARGET_PRELOAD_GRUB_MODULES'" "'/dev/$TARGET_DISK'"