Commit fafa70dc authored by Benjamin Slade's avatar Benjamin Slade

working fix for grub-probe

- add line to /etc/rc.local to symbolically link
  /dev/mapper/NAME-OF-LUKS-PART to /dev/NAME-OF-LUKS-PART
parent 61cc2852
......@@ -139,14 +139,9 @@ read -p "Press <return> to exit chroot." exitchroot
rm importvars.sh
rm 06-config-inside-chroot.sh
# fix grub-probe - doesn't work; not sure why
#ln -s /dev/mapper/${LUKSNAME} /dev/${LUKSNAME}
# so, instead, create /usr/local/bin/grub-probe that does the right thing
echo "#!/bin/bash
rm /dev/${LUKSNAME} 2> /dev/null
ln -s /dev/mapper/${LUKSNAME} /dev/${LUKSNAME}
/usr/bin/grub-probe \"$@\"" > /usr/local/bin/grub-probe
chmod +x /usr/local/bin/grub-probe
# fix grub-probe issue not finding zfs / : symbolically link on boot
echo "
# fix grub-probe issue not finding zfs /
ln -s /dev/mapper/${LUKSNAME} /dev/${LUKSNAME}" >> /etc/rc.local
exit
......@@ -2,16 +2,6 @@
. importvars.sh # get old variables from previous steps too
# fix grub-probe - doesn't work; probably needs to be run after boot of actual system
#ln -s /dev/mapper/${LUKSNAME} /dev/${LUKSNAME}
# so, instead, create /usr/local/bin/grub-probe that does the right thing
echo "#!/bin/bash
rm /dev/${LUKSNAME} 2> /dev/null
ln -s /dev/mapper/${LUKSNAME} /dev/${LUKSNAME}
/usr/bin/grub-probe \"$@\"" > /usr/local/bin/grub-probe
chmod +x /usr/local/bin/grub-probe
if [ ${NETWORKMAN} == "Y" ]
then
rm -fr /var/service/dhcpcd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment