aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-07-21 16:26:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-07-21 16:26:53 -0300
commitbe80dee110372c73f712dc22724f68c893760fc5 (patch)
tree1936ec88441dd827c372b5e03171e64e154a8f08 /share/hydractl
parent932ffe9e41fd3c0d2369f6addf860dafdd0b8ee1 (diff)
downloadhydra-be80dee110372c73f712dc22724f68c893760fc5.tar.gz
hydra-be80dee110372c73f712dc22724f68c893760fc5.tar.bz2
Provision: another grub.cfg replacement
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/provision3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 8d20df5..8cf112e 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -479,7 +479,8 @@ if [ "$grub" == "y" ]; then
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|g" $WORK/boot/grub/grub.cfg
+ hydra_sudo_run sed -i -e "s|root=/dev/mapper/provision-root|root=/dev/mapper/root|g" $WORK/boot/grub/grub.cfg
+ hydra_sudo_run sed -i -e "s|root=/dev/mapper/$hostname-unlocked|root=/dev/mapper/root|g" $WORK/boot/grub/grub.cfg
fi
fi