aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-01-25 11:19:26 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-01-25 11:19:26 -0300
commit4829ffd12c7ce0ba27acd7346200138a58878e87 (patch)
tree2fd597536d1ca844dcd0d491a7cc937236657a9a /share/hydractl
parentcb4835f9bab71e20546876db7dbea18be9c9463e (diff)
downloadhydra-4829ffd12c7ce0ba27acd7346200138a58878e87.tar.gz
hydra-4829ffd12c7ce0ba27acd7346200138a58878e87.tar.bz2
Fix: provision: UEFI: add /boot/efi into fstab
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/provision8
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