summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-09-17 08:12:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-09-17 08:12:34 -0300
commit1bd3c4f1c2ba89f0b41ed57bc9f46cdf8134509c (patch)
treecf0b898c1870c2a94f6e31ea38d01aeab8ba3e96 /share
parent202a4250fc6c4910fc7096ca9993aecaa87a3db9 (diff)
downloadhydra-1bd3c4f1c2ba89f0b41ed57bc9f46cdf8134509c.tar.gz
hydra-1bd3c4f1c2ba89f0b41ed57bc9f46cdf8134509c.tar.bz2
Provision: fix grub menu entry
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/provision3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index b3f6ba9..e56000d 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -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