Fix GRUB/EFI install for Virtualbox hosts

This commit is contained in:
maride 2017-09-02 16:44:32 +02:00
parent 928df65190
commit 289f248c09

View File

@ -19,7 +19,9 @@ echo $hostname > /mnt/etc/hostname
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
arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=BOOT
# thanks to Virtualbox, this step is necessary
cp /boot/EFI/BOOT/{grubx64.efi,BOOTX64.EFI}
else
arch-chroot /mnt grub-install --target=i386-pc /dev/*da
fi