]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: Order ldconfig after systemd-tmpfiles-setup.service
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 23 Sep 2024 11:20:42 +0000 (13:20 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Sep 2024 13:32:58 +0000 (15:32 +0200)
tmpfiles might be linking the configuration for ldconfig into /etc
so make sure it runs after it so that the configuration is guaranteed
to be in place.

units/ldconfig.service

index f5fb01ee234a753f9843e6d532d93dca68615d50..404fa011d5a7347aaa7985041b73542b45ab8154 100644 (file)
@@ -15,8 +15,9 @@ ConditionNeedsUpdate=|/etc
 ConditionFileNotEmpty=|!/etc/ld.so.cache
 
 DefaultDependencies=no
-# 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
+# systemd-confext.service or systemd-tmpfiles-setup.service might put the ld.so.conf configuration files in place so
+# order it after those.
+After=local-fs.target systemd-confext.service systemd-tmpfiles-setup.service
 Before=sysinit.target systemd-update-done.service
 Conflicts=shutdown.target initrd-switch-root.target
 Before=shutdown.target initrd-switch-root.target