Fix: variable name change

This commit is contained in:
maride 2018-03-03 20:08:49 +01:00
parent 28dab7b58b
commit 408f2aa873

View File

@ -18,7 +18,7 @@ read hostname
echo $hostname > /mnt/etc/hostname echo $hostname > /mnt/etc/hostname
echo "~> Configuring 'grub' for $bootloader" echo "~> Configuring 'grub' for $bootloader"
if [ "$bootloader" == "EFI" ]; then if [ "$bootmethod" == "EFI" ]; then
arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=BOOT arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=BOOT
# thanks to Virtualbox, this step is necessary # thanks to Virtualbox, this step is necessary
cp /mnt/boot/EFI/BOOT/{grubx64.efi,BOOTX64.EFI} cp /mnt/boot/EFI/BOOT/{grubx64.efi,BOOTX64.EFI}