Add support for legacy BIOS boot
This commit is contained in:
@@ -17,8 +17,13 @@ echo -e "~> Choose a hostname: "
|
||||
read hostname
|
||||
echo $hostname > /mnt/etc/hostname
|
||||
|
||||
echo "~> Configuring 'grub'"
|
||||
arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch_GRUB
|
||||
echo "~> Configuring 'grub' for $bootloader"
|
||||
if [ "$bootloader" == "EFI" ]; then
|
||||
arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch_GRUB
|
||||
else
|
||||
arch-chroot /mnt grub-install --target=i386-pc /dev/*da
|
||||
fi
|
||||
|
||||
echo "GRUB_CMDLINE_LINUX='cryptdevice=UUID=`blkid -o value ${blockdevice}2 | head -n 1`:cryptroot'" > /mnt/etc/default/grub
|
||||
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user