]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: restore ConditionNeesUpdate=/etc in ldconfig.service (#3311)
authorLennart Poettering <lennart@poettering.net>
Sat, 21 May 2016 21:09:18 +0000 (23:09 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 21 May 2016 21:09:18 +0000 (17:09 -0400)
In order to support stateless systems that support offline /usr updates
properly, let's restore the ConditionNeesUpdate=/etc line that makes sure we
are run when /usr is updated and this update needs to be propagated to the
/etc/ld.so.conf file stored in /etc.

This reverts part of #2859, which snuck this change in, but really shouldn't
have.

units/ldconfig.service

index 0910fff054f87ffaa286a1578bd065558d7ddd75..d7b78bacf9bb255a8eecd74c69ae309012c45429 100644 (file)
@@ -12,6 +12,7 @@ DefaultDependencies=no
 Conflicts=shutdown.target
 After=local-fs.target
 Before=sysinit.target shutdown.target systemd-update-done.service
+ConditionNeedsUpdate=|/etc
 ConditionFileNotEmpty=|!/etc/ld.so.cache
 
 [Service]