mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
psplash: mask psplash in case of systemd
We need to prevent the psplash init script from running via systemd because the script is supposed to be used by sysvinit system and it doesn't have any real effect in a systemd based system. (From OE-Core rev: 2e847db3ac3333a68b721b11624f4f515bda7ccf) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -109,3 +109,13 @@ FILES_${PN} += "/mnt/.psplash"
|
||||
|
||||
INITSCRIPT_NAME = "psplash.sh"
|
||||
INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ."
|
||||
|
||||
DEPENDS_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 [ -n "$D" ]; then
|
||||
OPTS="--root=$D"
|
||||
fi
|
||||
systemctl $OPTS mask psplash.service
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user