Skip to content

Commit

Permalink
units: Order ldconfig after systemd-tmpfiles-setup.service
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DaanDeMeyer authored and keszybz committed Sep 24, 2024
1 parent e11745d commit df4d09f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions units/ldconfig.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df4d09f

Please sign in to comment.