diff options
author | Luca Boccassi <bluca@debian.org> | 2023-11-25 04:16:36 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2023-11-29 12:04:59 +0100 |
commit | 9e615fa3aa9710f530a4242dd79e4c7a4f96256e (patch) | |
tree | dde29aca0f048952f5228c2d84efd72d6296eeb3 /src/core/path.c | |
parent | mkosi: Install integritysetup on CentOS/Fedora (diff) | |
download | systemd-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.c | 2 |
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; } |