]> gitweb.fluxo.info Git - hydra.git/commitdiff
Provision: fix grub menu entry
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 17 Sep 2016 11:12:34 +0000 (08:12 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 17 Sep 2016 11:12:34 +0000 (08:12 -0300)
share/hydractl/provision

index b3f6ba925c2fa4c17fd6271996827094c2c89043..e56000df1af1099013ca2c49fe7c86d786412f09 100755 (executable)
@@ -435,6 +435,9 @@ if [ "$grub" == "y" ]; then
     echo 'GRUB_PRELOAD_MODULES="lvm cryptodisk mdraid1x"' | $SUDO tee -a $WORK/etc/default/grub > /dev/null
     hydra_sudo_run chroot $WORK/ update-grub
     hydra_sudo_run chroot $WORK/ grub-install --recheck --force $device
+
+    # Fix menu entry
+    hydra_sudo_run sed -i -e "s|root=/dev/mapper/provision-root|root=/dev/mapper/root|" $WORK/boot/grub/grub.cfg
   fi
 fi