]> code.ossystems Code Review - openembedded-core.git/commit
systemd.bbclass: Allow enabling of parameterised services
authorBob Ham <bob.ham@collabora.com>
Thu, 19 Nov 2015 11:24:00 +0000 (11:24 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Dec 2015 08:47:27 +0000 (08:47 +0000)
commit4ce15271dad3520e5de2500c609b05d5a511e453
tree118ae66e5eb6bce881e5331258aa7a28c9688e15
parent55ca1fb8f0e81ff739b3c46897e43356d1f760c3
systemd.bbclass: Allow enabling of parameterised services

Currently the systemd.class will check whether a service exists when it is
requested to enabled it.  However, its check does not take into account that a
service like 'foo@eth0.service' can be enabled from a service named
'foo@.service'.  This patch alters the check function in systemd.class to look
for 'foo@.service' if the normal check fails.

Signed-off-by: Bob Ham <bob.ham@collabora.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/systemd.bbclass