[oe-commits] [openembedded-core] 17/20: systemd.bbclass: enable all services specified in ${SYSTEMD_SERVICE}

git at git.openembedded.org git at git.openembedded.org
Sat Oct 19 17:14:18 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 68a10763e64764a0d43be9162e7b99833f5296db
Author: Mikko Rapeli <mikko.rapeli at bmw.de>
AuthorDate: Thu Oct 17 10:31:58 2019 +0300

    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.
    
    Signed-off-by: Mikko Rapeli <mikko.rapeli at bmw.de>
    Cc: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/systemd.bbclass | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index 1dca099..9e8a82c 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -32,11 +32,7 @@ if type systemctl >/dev/null 2>/dev/null; then
 
 	if [ "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
 		for service in ${SYSTEMD_SERVICE_ESCAPED}; do
-			case "${service}" in
-			*@*)
-				systemctl ${OPTS} enable "${service}"
-				;;
-			esac
+			systemctl ${OPTS} enable "$service"
 		done
 	fi
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list