Fix GRUB/EFI install for Virtualbox hosts
This commit is contained in:
parent
928df65190
commit
289f248c09
@ -19,7 +19,9 @@ echo $hostname > /mnt/etc/hostname
|
|||||||
|
|
||||||
echo "~> Configuring 'grub' for $bootloader"
|
echo "~> Configuring 'grub' for $bootloader"
|
||||||
if [ "$bootloader" == "EFI" ]; then
|
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
|
else
|
||||||
arch-chroot /mnt grub-install --target=i386-pc /dev/*da
|
arch-chroot /mnt grub-install --target=i386-pc /dev/*da
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user