summaryrefslogtreecommitdiffstats
path: root/src/core/path.c
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-11-25 04:16:36 +0100
committerLuca Boccassi <bluca@debian.org>2023-11-29 12:04:59 +0100
commit9e615fa3aa9710f530a4242dd79e4c7a4f96256e (patch)
treedde29aca0f048952f5228c2d84efd72d6296eeb3 /src/core/path.c
parentmkosi: Install integritysetup on CentOS/Fedora (diff)
downloadsystemd-9e615fa3aa9710f530a4242dd79e4c7a4f96256e.tar.xz
systemd-9e615fa3aa9710f530a4242dd79e4c7a4f96256e.zip
core: add WantsMountsFor=
This is the equivalent of RequiresMountsFor=, but adds Wants= instead of Requires=. It will be useful for example for the autogenerated systemd-cryptsetup units. Fixes https://github.com/systemd/systemd/issues/11646
Diffstat (limited to 'src/core/path.c')
-rw-r--r--src/core/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/path.c b/src/core/path.c
index 44481a95d5..471d159d81 100644
--- a/src/core/path.c
+++ b/src/core/path.c
@@ -309,7 +309,7 @@ static int path_add_mount_dependencies(Path *p) {
assert(p);
LIST_FOREACH(spec, s, p->specs) {
- r = unit_require_mounts_for(UNIT(p), s->path, UNIT_DEPENDENCY_FILE);
+ r = unit_add_mounts_for(UNIT(p), s->path, UNIT_DEPENDENCY_FILE, UNIT_MOUNT_REQUIRES);
if (r < 0)
return r;
}