[OE-core] [PATCH 1/3] sysstat: do not use 'exit 0' to incorrectly postpone to first boot
Hongxu Jia
hongxu.jia at windriver.com
Wed Sep 5 12:36:01 UTC 2018
In `6bf82c2 sysstat: don't run populate-volatile.sh update
in do_rootfs, first boot or without populate-volatile.sh',
it used 'exit 0' to incorrect postpone to first boot, after
do_rootfs with `exit 0', there will be no first boot to rerun.
Since `229f4e9 package.bbclass: add support for
pkg_postinst_ontarget()' applied in oe-core, use
pkg_postinst_ontarget to instead.
Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
meta/recipes-extended/sysstat/sysstat.inc | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc
index 0bc7e14..5f9ede2 100644
--- a/meta/recipes-extended/sysstat/sysstat.inc
+++ b/meta/recipes-extended/sysstat/sysstat.inc
@@ -50,10 +50,7 @@ do_install() {
sed -i -e 's#@LIBDIR@#${libdir}#g' ${D}${systemd_unitdir}/system/sysstat.service
}
-pkg_postinst_${PN} () {
- if [ -n "$D" ]; then
- exit 0
- fi
+pkg_postinst_ontarget_${PN} () {
if [ -e /etc/init.d/populate-volatile.sh ]; then
/etc/init.d/populate-volatile.sh update
fi
--
2.8.1
More information about the Openembedded-core
mailing list