mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 00:32:12 +02:00
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: 790276bde066ecc9876120c3097dcd57a9936f00) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c91cda9b6f
commit
617a658804
@@ -170,7 +170,7 @@ MASKED_SCRIPTS = " \
|
||||
urandom"
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user