diff options
author | Martin Kelly <mkelly@xevo.com> | 2017-10-16 09:31:42 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-08 22:24:04 +0000 |
commit | 35730f8735a5cfe4b6c748fd984b7521ff4882ac (patch) | |
tree | 77f557ac6c117d7983585c57902b79eab1bc8799 | |
parent | b02e47f8e8b26d1d5f5d3aac951c7790b1a8ae5c (diff) | |
download | poky-35730f8735a5cfe4b6c748fd984b7521ff4882ac.tar.gz |
systemctl-native: add target.wants to target regex
The regex for acceptable systemd WantedBy/RequiredBy targets does not include
target.wants, so a line like this:
WantedBy=multi-user.target.wants
gets silently ignored, even though it works fine on a real system.
(From OE-Core rev: ccffc66c64fc0dde433b0375c69760983c657427)
Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | meta/recipes-core/systemd/systemd-systemctl/systemctl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl b/meta/recipes-core/systemd/systemd-systemctl/systemctl index efad14ce17..6e5a1b7181 100755 --- a/meta/recipes-core/systemd/systemd-systemctl/systemctl +++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl | |||
@@ -108,7 +108,7 @@ for service in $services; do | |||
108 | 108 | ||
109 | # If any new unit types are added to systemd they should be added | 109 | # If any new unit types are added to systemd they should be added |
110 | # to this regular expression. | 110 | # to this regular expression. |
111 | unit_types_re='\.\(service\|socket\|device\|mount\|automount\|swap\|target\|path\|timer\|snapshot\)\s*$' | 111 | unit_types_re='\.\(service\|socket\|device\|mount\|automount\|swap\|target\|target\.wants\|path\|timer\|snapshot\)\s*$' |
112 | if [ "$action" = "preset" ]; then | 112 | if [ "$action" = "preset" ]; then |
113 | action=`egrep -sh $service $ROOT/etc/systemd/user-preset/*.preset | cut -f1 -d' '` | 113 | action=`egrep -sh $service $ROOT/etc/systemd/user-preset/*.preset | cut -f1 -d' '` |
114 | if [ -z "$action" ]; then | 114 | if [ -z "$action" ]; then |