summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorSlavic Brutalik <no@good.com>2019-12-13 00:30:54 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-31 10:37:23 +0000
commit07ae996d849e5edf91e2fb6712c801d10c148222 (patch)
tree7049667e9cad6eb66ffbcc32b2d16f64231b11ff /meta/recipes-core
parentccff952d9c747d8c7e12836094657ebcd3501a86 (diff)
downloadpoky-07ae996d849e5edf91e2fb6712c801d10c148222.tar.gz
systemd-systemctl: Fix handling of aliased targets
The script scans for services, parses them and makes sure those targets are still there. The exists file check fails if the target is an alias, such as default.target so add an additional test. [YOCTO #13685] (From OE-Core rev: 10bdbf033e51c97f6408c9114d480372135a2c2e) (From OE-Core rev: 64d305024e0514b832da05867672f61d1b5b3225) Signed-off-by: Werner Grift <sky.captin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rwxr-xr-xmeta/recipes-core/systemd/systemd-systemctl/systemctl2
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 ebac863739..990de1ab39 100755
--- a/meta/recipes-core/systemd/systemd-systemctl/systemctl
+++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl
@@ -172,7 +172,7 @@ class SystemdUnit():
172 def _path_for_unit(self, unit): 172 def _path_for_unit(self, unit):
173 for location in locations: 173 for location in locations:
174 path = self.root / location / "system" / unit 174 path = self.root / location / "system" / unit
175 if path.exists(): 175 if path.exists() or path.is_symlink():
176 return path 176 return path
177 177
178 raise SystemdUnitNotFoundError(self.root, unit) 178 raise SystemdUnitNotFoundError(self.root, unit)