summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2020-06-30 17:50:53 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-07 23:15:10 +0100
commit6d2d6e6da52839806fb56b2315667ada03b0c5b9 (patch)
treece7c1ff6cb40873729756ddd647ae88f91b6d396 /meta
parent1759605aed09c100f9149aa391357e499238d168 (diff)
downloadpoky-6d2d6e6da52839806fb56b2315667ada03b0c5b9.tar.gz
initscripts: update postinst
in container image, it don't have init system, install package initscripts will report error: systemctl: command not found fix by use same way as systemd.bbclass to decide if systemctl mask will run (From OE-Core rev: 6622515c1fa7025543aea37c4b37831577485811) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 790276bde066ecc9876120c3097dcd57a9936f00) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/initscripts/initscripts_1.0.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index 1a59b82fbf..f98e42eb2e 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -169,7 +169,7 @@ MASKED_SCRIPTS = " \
169 urandom" 169 urandom"
170 170
171pkg_postinst_${PN} () { 171pkg_postinst_${PN} () {
172 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 172 if type systemctl >/dev/null 2>/dev/null; then
173 if [ -n "$D" ]; then 173 if [ -n "$D" ]; then
174 OPTS="--root=$D" 174 OPTS="--root=$D"
175 fi 175 fi