units: run ldconfig also when cache is unpopulated
authorMichal Sekletar <msekleta@redhat.com>
Wed, 23 Sep 2015 17:23:21 +0000 (19:23 +0200)
committerMichal Sekletar <msekleta@redhat.com>
Wed, 23 Sep 2015 17:27:45 +0000 (19:27 +0200)
units/ldconfig.service

index f9691e2..994edd9 100644 (file)
@@ -12,7 +12,8 @@ DefaultDependencies=no
 Conflicts=shutdown.target
 After=systemd-remount-fs.service
 Before=sysinit.target shutdown.target systemd-update-done.service
-ConditionNeedsUpdate=/etc
+ConditionNeedsUpdate=|/etc
+ConditionFileNotEmpty=|!/etc/ld.so.cache
 
 [Service]
 Type=oneshot