mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
keymaps: mask keymap when necessary
When 'sysvinit' and 'systemd' are both in DISTRO_FEATURES, we need to prevent the init script from running via systemd. This is because that the functionality of the init script has implemented in systemd internally. (From OE-Core rev: 8cfba07e24dae3d1837ccb5cb04e11f362519b0a) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -35,4 +35,14 @@ do_install () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}"
|
||||||
|
pkg_postinst_${PN} () {
|
||||||
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd sysvinit','true','false',d)}; then
|
||||||
|
if [ -n "$D" ]; then
|
||||||
|
OPTS="--root=$D"
|
||||||
|
fi
|
||||||
|
systemctl $OPTS mask keymap.service
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
ALLOW_EMPTY_${PN} = "1"
|
ALLOW_EMPTY_${PN} = "1"
|
||||||
|
|||||||
Reference in New Issue
Block a user