From 40bffbe91a762217e1679586b80df06fbf754f3c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 17 Dec 2018 19:28:55 -0200 Subject: Provision: update-initramfs after editing fstab --- share/hydractl/provision | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/hydractl/provision b/share/hydractl/provision index c0526d8..1721a17 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -528,10 +528,12 @@ if [ "$grub" == "y" ] && [ "$encrypt" != "y" ]; then reboot_device="`blkid $boot_device | cut -d ' ' -f 2 | sed -e 's/"//g'`" # Use device name: might lead to wrong results - # During install boot_device might be /dev/sdb2, but on but be /dev/sda2 + # During install boot_device might be /dev/sdb2, but on boot be /dev/sda2 #reboot_device="$boot_device" echo "$reboot_device /boot ext4 defaults,errors=remount-ro 0 2" | $SUDO tee -a $WORK/etc/fstab > /dev/null + + hydra_sudo_run chroot $WORK update-initramfs -u fi # Utils. -- cgit v1.2.3