* [PATCH 0/1] YOCTO:13685 systemd preset all fix
@ 2019-12-12 22:30 Slavic Brutalik
2019-12-12 22:30 ` [PATCH 1/1] systemd_preset_all: scanned targets that are aliases no longer fail sanity checks Slavic Brutalik
0 siblings, 1 reply; 2+ messages in thread
From: Slavic Brutalik @ 2019-12-12 22:30 UTC (permalink / raw)
To: openembedded-core
From: Slavic Brutalik <no@good.com>
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(-)
--
2.20.1
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH 1/1] systemd_preset_all: scanned targets that are aliases no longer fail sanity checks
2019-12-12 22:30 [PATCH 0/1] YOCTO:13685 systemd preset all fix Slavic Brutalik
@ 2019-12-12 22:30 ` Slavic Brutalik
0 siblings, 0 replies; 2+ messages in thread
From: Slavic Brutalik @ 2019-12-12 22:30 UTC (permalink / raw)
To: openembedded-core; +Cc: Slavic Brutalik
From: Slavic Brutalik <no@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@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-12 22:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-12 22:30 [PATCH 0/1] YOCTO:13685 systemd preset all fix Slavic Brutalik
2019-12-12 22:30 ` [PATCH 1/1] systemd_preset_all: scanned targets that are aliases no longer fail sanity checks Slavic Brutalik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox