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