Check if running systemd in postinst by testing for existence of /sys/fs/cgroup/systemd instead of checking if systemd-tmpfiles exists in PATH. This is so populate-volatile.sh update is called instead of systemd-tmpfiles --create if the system has systemd-tmpfiles installed but was booted using sysvinit.
Signed-off-by: Jonathan Liu <net...@gmail.com> --- meta/recipes-connectivity/resolvconf/resolvconf_1.73.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/resolvconf/resolvconf_1.73.bb b/meta/recipes-connectivity/resolvconf/resolvconf_1.73.bb index ea5b6dd..c8f510b 100644 --- a/meta/recipes-connectivity/resolvconf/resolvconf_1.73.bb +++ b/meta/recipes-connectivity/resolvconf/resolvconf_1.73.bb @@ -44,7 +44,7 @@ do_install () { pkg_postinst_${PN} () { if [ -z "$D" ]; then - if command -v systemd-tmpfiles >/dev/null; then + if [ -e /sys/fs/cgroup/systemd ]; then systemd-tmpfiles --create elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then ${sysconfdir}/init.d/populate-volatile.sh update -- 1.8.3.2 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core