Skip to contentSkip to conversation

YOCTO:13685 systemd preset all fix

PATCH New Slavic Brutalik 1 participant 2 messages Dec 12, 2019

lore
Share & tools
lore
#0 lore raw

cover YOCTO:13685 systemd preset all fix

From: Slavic Brutalik <[email protected]>

The following changes since commit 0f04e81c797d5d337ece4e8638a6b71c75bc0a00:

build-appliance-image: Update to master head revision (2019-12-12 14:21:40 +0000)

are available in the Git repository at:

git://github.com/tactical-drone/openembedded-core master
https://github.com/tactical-drone/openembedded-core/tree/master

Slavic Brutalik (1):
systemd_preset_all: scanned targets that are aliases no longer fail
sanity checks

 meta/recipes-core/systemd/systemd-systemctl/systemctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 systemd_preset_all: scanned targets that are aliases no longer fail sanity checks

From: Slavic Brutalik <[email protected]>

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.

---
 meta/recipes-core/systemd/systemd-systemctl/systemctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/systemd/systemd-systemctl/systemctl +1 -1
index ebac863739..990de1ab39 100755
@@ -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)
Signature · 1 line
2.20.1