From 8d6b288d44368a966c3623c721c9d25da5a1b3a7 Mon Sep 17 00:00:00 2001 From: Phil Wise Date: Tue, 18 Apr 2017 16:28:07 +0200 Subject: Create a wrapper so OSTree can find ostree-grub-generator OSTree has a hardcoded path to ostree-grub-generator, this wrapper sets it dynamically to avoid problems with sharing a SSTATE cache. --- recipes-sota/ostree/ostree_git.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes-sota/ostree/ostree_git.bb b/recipes-sota/ostree/ostree_git.bb index 102b70f..58a30a4 100644 --- a/recipes-sota/ostree/ostree_git.bb +++ b/recipes-sota/ostree/ostree_git.bb @@ -67,6 +67,11 @@ do_install_append() { fi } +do_install_append_class-native() { + create_wrapper ${D}${bindir}/ostree OSTREE_GRUB2_EXEC="${STAGING_LIBDIR_NATIVE}/ostree/ostree-grub-generator" +} + + FILES_${PN} += " \ ${@'${systemd_unitdir}/system/' if d.getVar('SYSTEMD_REQUIRED', True) else ''} \ ${@'${libdir}/dracut/modules.d/98ostree/module-setup.sh' if d.getVar('SYSTEMD_REQUIRED', True) else ''} \ -- cgit v1.2.3-54-g00ecf