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)
committerMichael Biebl <biebl@debian.org>
Mon, 27 Jul 2020 21:24:47 +0000 (22:24 +0100)
commitfffa16c3b24bd3602eb2c9a9ecbe112c21dcdaf3
tree1dfd4d6c91490370557f8a1b4321508730e39925
parenta6264f6298c9788fd1d2cf66c04d5f408f114eed
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.

(cherry picked from commit f3b7a79b973a28af4f7a592a8b2e199cc194218b)

Gbp-Pq: Name core-automatically-add-dependency-on-systemd-remount-fs.s.patch
src/core/unit.c