The logic added to the pkg_postinst in commit 6bf82c26f953 has the side effect of rendering SYSTEMD_AUTO_ENABLE ineffective. The systemd service will not be configured as 'enabled' either offline(do_rootfs) or during first boot. Since the volatiles, as used, in the pkg_postinst are unused with systemd we can simply skip the pkg_postinst when not using sysvinit.
Signed-off-by: Mark Asselstine <[email protected]> --- meta/recipes-extended/sysstat/sysstat.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc index bb5629d..fce2804 100644 --- a/meta/recipes-extended/sysstat/sysstat.inc +++ b/meta/recipes-extended/sysstat/sysstat.inc @@ -42,7 +42,9 @@ do_install() { sed -i -e 's#@LIBDIR@#${libdir}#g' ${D}${systemd_unitdir}/system/sysstat.service } -pkg_postinst_${PN} () { +OVERRIDES_append = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', ':sysvinit', '', d)}" + +pkg_postinst_${PN}_sysvinit () { if [ -n "$D" ]; then exit 0 fi -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
