teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0253-units-run-ldconfig-also-when-cache-is-unpopulated.patch

803fb7
From ec6c44ff15e2b04f5acca7ec467aa0bb1658ba38 Mon Sep 17 00:00:00 2001
803fb7
From: Michal Sekletar <msekleta@redhat.com>
803fb7
Date: Wed, 23 Sep 2015 19:23:21 +0200
803fb7
Subject: [PATCH] units: run ldconfig also when cache is unpopulated
803fb7
803fb7
Cherry-picked from: 92eab5dea40f50d0e66b91ba1224e2101bc83494
803fb7
Resolves: #1265539
803fb7
---
803fb7
 units/ldconfig.service | 3 ++-
803fb7
 1 file changed, 2 insertions(+), 1 deletion(-)
803fb7
803fb7
diff --git a/units/ldconfig.service b/units/ldconfig.service
803fb7
index 43c145b72..8600b1327 100644
803fb7
--- a/units/ldconfig.service
803fb7
+++ b/units/ldconfig.service
803fb7
@@ -12,7 +12,8 @@ DefaultDependencies=no
803fb7
 Conflicts=shutdown.target
803fb7
 After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service
803fb7
 Before=sysinit.target shutdown.target systemd-update-done.service
803fb7
-ConditionNeedsUpdate=/etc
803fb7
+ConditionNeedsUpdate=|/etc
803fb7
+ConditionFileNotEmpty=|!/etc/ld.so.cache
803fb7
 
803fb7
 [Service]
803fb7
 Type=oneshot