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