The configuration files required by ldconfig could be put into
place by systemd-confext.service (ldconfig only looks in /etc) so
let's order the service after systemd-confext.service to make sure
any config files are in place before the service runs.
ConditionFileNotEmpty=|!/etc/ld.so.cache
DefaultDependencies=no
-After=local-fs.target
+# systemd-confext.service might put the ld.so.conf configuration files in place so order this after that.
+After=local-fs.target systemd-confext.service
Before=sysinit.target systemd-update-done.service
Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target