units: Order ldconfig.service after systemd-confext.service
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 11 Sep 2024 19:29:25 +0000 (21:29 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 12 Sep 2024 18:20:53 +0000 (20:20 +0200)
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.

units/ldconfig.service

index 53c6d4ecb16c92d9f5775832103f10746de58876..f5fb01ee234a753f9843e6d532d93dca68615d50 100644 (file)
@@ -15,7 +15,8 @@ ConditionNeedsUpdate=|/etc
 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