[OE-core] [PATCH 1/1] systemd_preset_all: scanned targets that are aliases no longer fail sanity checks
Slavic Brutalik
sky.captin at gmail.com
Thu Dec 12 22:30:54 UTC 2019
From: Slavic Brutalik <no at good.com>
YOCO #13685: 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.
Signed-off-by: Werner Grift <sky.captin at gmail.com>
---
meta/recipes-core/systemd/systemd-systemctl/systemctl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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():
def _path_for_unit(self, unit):
for location in locations:
path = self.root / location / "system" / unit
- if path.exists():
+ if path.exists() or path.is_symlink():
return path
raise SystemdUnitNotFoundError(self.root, unit)
--
2.20.1
More information about the Openembedded-core
mailing list