diff options
-rwxr-xr-x | share/hydractl/provision | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision index cd3d67a..f2c468c 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -583,6 +583,12 @@ EOF fi fi +if [ "$boot_mode" == "uefi" ]; then + cat <<-EOF | $SUDO tee -a $WORK/etc/fstab > /dev/null +${esp_device} /boot/efi vfat defaults,errors=remount-ro 0 2 +EOF +fi + # LVM. if [ "$discards" == "y" ]; then $SUDO sed -i -e 's/issue_discards = 0/issue_discards = 1' $WORK/etc/lvm/lvm.conf @@ -703,7 +709,7 @@ EOF if [ "$boot_mode" == "bios" ]; then hydra_sudo_run chroot $WORK/ grub-install --recheck --force $device else - hydra_sudo_run chroot $WORK/ grub-install --target=${grub_arch} --efi-directory=/boot/efi $grub_uefi_nvram + hydra_sudo_run chroot $WORK/ grub-install --target=${grub_arch}-efi --efi-directory=/boot/efi $grub_uefi_nvram fi fi |