summaryrefslogtreecommitdiffstats
path: root/meta/classes/systemd.bbclass
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@bmw.de>2019-10-17 10:31:58 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-19 23:18:33 +0100
commit1b3f5bd39e7147eefca269cb6f5e92b130ff3d9c (patch)
tree7b1a05e409c36da1183bbe5bbb7f18788ad9f9ac /meta/classes/systemd.bbclass
parent8aef88393637092ee76b579c755356f7972ae806 (diff)
downloadpoky-1b3f5bd39e7147eefca269cb6f5e92b130ff3d9c.tar.gz
systemd.bbclass: enable all services specified in ${SYSTEMD_SERVICE}
This has been the traditional way of enabling systemd services. It may conflict with presets feature, but other layers, image classes and recipes add services to be enabled using SYSTEMD_SERVICE variable also with read-only rootfs, e.g. IMAGE_FEATURES has stateless-rootfs and systemd_preset_all task is not executed. Fixes startup of custom services from our recipes using custom image classes with various BSP layers. In the worst case even serial console getty service wasn't starting due to dependency no not enabled services. (From OE-Core rev: 68a10763e64764a0d43be9162e7b99833f5296db) Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> Cc: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r--meta/classes/systemd.bbclass6
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index 1dca09964b..9e8a82c9f1 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -32,11 +32,7 @@ if type systemctl >/dev/null 2>/dev/null; then
32 32
33 if [ "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then 33 if [ "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
34 for service in ${SYSTEMD_SERVICE_ESCAPED}; do 34 for service in ${SYSTEMD_SERVICE_ESCAPED}; do
35 case "${service}" in 35 systemctl ${OPTS} enable "$service"
36 *@*)
37 systemctl ${OPTS} enable "${service}"
38 ;;
39 esac
40 done 36 done
41 fi 37 fi
42 38