]> gitweb.fluxo.info Git - hydra.git/commitdiff
Provision: update-initramfs after editing fstab
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 17 Dec 2018 21:28:55 +0000 (19:28 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 17 Dec 2018 21:28:55 +0000 (19:28 -0200)
share/hydractl/provision

index c0526d81615b377698fd2fd5f743e3c5330ce460..1721a1700467df2f0f5478e8107c8c4360755926 100755 (executable)
@@ -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.