]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: automatically add dependency on systemd-remount-fs.service if StateDirectory...
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Apr 2020 14:08:35 +0000 (16:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Apr 2020 14:29:25 +0000 (16:29 +0200)
commitf3b7a79b973a28af4f7a592a8b2e199cc194218b
tree49875554cb2d489a89062e685b6d14e2ef14ccea
parent167241912f51fbc0d7d0869b9af34c15b5ecc4b6
core: automatically add dependency on systemd-remount-fs.service if StateDirectory= is used

And similar for other settings that require a writable /var/.

Rationale: if these options are used for early-boot services (such as
systemd-pstore.service) we need /var/ writable. And if /var/ is on the
root fs, then systemd-remount-fs.service is the service that ensures
that /var/ is writable.

This allows us to remove explicit deps in services such as
systemd-pstore.service.
src/core/unit.c