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>
Sun, 17 May 2020 17:28:49 +0000 (18:28 +0100)
commitb4a6a9b78e652fb55e2fd45838a166a26f8bd0b5
tree904690aee65fc7a203f8fdc04be21eae8bff38db
parentdaa0612b9581137ee099cdfa62c5d55099f96782
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