summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2020-06-30 17:49:16 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-30 23:02:11 +0100
commiteec648f23df0a4e05130f8ef5a04902296567e38 (patch)
treebc015286e32dfcb0cd32b80d56d76a56e02b8073
parent0ebb9d1d1f02ec4c567d56c18103df388e75e3ba (diff)
downloadopenembedded-core-eec648f23df0a4e05130f8ef5a04902296567e38.tar.gz
openembedded-core-eec648f23df0a4e05130f8ef5a04902296567e38.tar.bz2
openembedded-core-eec648f23df0a4e05130f8ef5a04902296567e38.zip
modutils-initscripts: update postinst
in container image, it don't have init system, install package modutils-initscripts will report error: + systemctl mask modutils.service /var/tmp/rpm-tmp.DYK3Pm: line 8: systemctl: command not found %post(modutils-initscripts-1.0-r7.3.cortexa72): waitpid(823) rc 823 status 7f00 warning: %post(modutils-initscripts-1.0-r7.3.cortexa72) scriptlet failed, exit status 127 fix by use same way as systemd.bbclass to decide if systemctl mask will run Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb b/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb
index 0f3df5577b..881b7db92e 100644
--- a/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb
+++ b/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb
@@ -24,7 +24,7 @@ do_install () {
PACKAGE_WRITE_DEPS_append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}"
pkg_postinst_${PN} () {
- if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ if type systemctl >/dev/null 2>/dev/null; then
if [ -n "$D" ]; then
OPTS="--root=$D"
fi