This patch adds a check for the grub2 location of grub-mkconfig_lib. I'm not sure this is the best place to be patching this based on my perusing of grub2's files, but I couldn't see a better way. At least for a default Xen SLES 12 SP2 this fixes errors with grub2-mkconfig after a "make install" of tboot.
Signed-off-by: Travis Gilbert <travis.gilb...@dell.com> ====================================================== diff -r e1bd4146a911 tboot/20_linux_tboot --- a/tboot/20_linux_tboot Tue Jun 20 10:03:48 2017 -0700 +++ b/tboot/20_linux_tboot Mon Jul 03 16:52:26 2017 -0500 @@ -26,6 +26,8 @@ . /usr/share/grub/grub-mkconfig_lib elif test -e ${libdir}/grub/grub-mkconfig_lib; then . ${libdir}/grub/grub-mkconfig_lib +elif test -e /usr/share/grub2/grub-mkconfig_lib; then + . /usr/share/grub2/grub-mkconfig_lib fi if test -e ${sysconfdir}/default/grub-tboot; then diff -r e1bd4146a911 tboot/20_linux_xen_tboot --- a/tboot/20_linux_xen_tboot Tue Jun 20 10:03:48 2017 -0700 +++ b/tboot/20_linux_xen_tboot Mon Jul 03 16:52:26 2017 -0500 @@ -26,6 +26,8 @@ . /usr/share/grub/grub-mkconfig_lib elif test -e ${libdir}/grub/grub-mkconfig_lib; then . ${libdir}/grub/grub-mkconfig_lib +elif test -e /usr/share/grub2/grub-mkconfig_lib; then + . /usr/share/grub2/grub-mkconfig_lib fi if test -e ${sysconfdir}/default/grub-tboot; then ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ tboot-devel mailing list tboot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tboot-devel