units: run ldconfig.service after we have mounted all local file systems
authorMichal Sekletar <msekleta@redhat.com>
Thu, 17 Mar 2016 13:12:32 +0000 (14:12 +0100)
committerMichal Sekletar <msekleta@redhat.com>
Thu, 17 Mar 2016 13:41:26 +0000 (14:41 +0100)
Also drop ConditionNeedsUpdate=|/etc. Regardless if system is updated
online or offline, updating dynamic loader cache should always be
responsibility of packaging tools/scripts.

units/ldconfig.service

index 994edd9..0910fff 100644 (file)
@@ -10,9 +10,8 @@ Description=Rebuild Dynamic Linker Cache
 Documentation=man:ldconfig(8)
 DefaultDependencies=no
 Conflicts=shutdown.target
-After=systemd-remount-fs.service
+After=local-fs.target
 Before=sysinit.target shutdown.target systemd-update-done.service
-ConditionNeedsUpdate=|/etc
 ConditionFileNotEmpty=|!/etc/ld.so.cache
 
 [Service]