* [PATCH] sysstat: fixup pkg_postinst to allow SYSTEMD_AUTO_ENABLE to work
@ 2016-12-06 19:25 Mark Asselstine
0 siblings, 0 replies; only message in thread
From: Mark Asselstine @ 2016-12-06 19:25 UTC (permalink / raw)
To: openembedded-core
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 <mark.asselstine@windriver.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-12-06 19:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-06 19:25 [PATCH] sysstat: fixup pkg_postinst to allow SYSTEMD_AUTO_ENABLE to work Mark Asselstine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox