Add support for legacy BIOS boot

This commit is contained in:
maride
2017-08-12 16:01:00 +02:00
parent 955ec704e8
commit ba1e4bff49
3 changed files with 21 additions and 2 deletions

View File

@@ -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