diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-27 14:02:25 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-27 14:02:25 +0100 |
commit | 97839ed6b7b19e2cb885a152b54fbd32334294e2 (patch) | |
tree | 98fe7d2a4ab96fb34756097030a6f5290372c1aa /src/core/unit.c | |
parent | 2281b56044ac36c1eec0bfc61cf3b172bc9d52b9 (diff) | |
parent | 9d06297e262966de71095debd1537fc223f940a3 (diff) |
Merge pull request #2017 from haraldh/nobinddevice2
core: Do not bind a mount unit to a device, if it was from mountinfo
Diffstat (limited to 'src/core/unit.c')
-rw-r--r-- | src/core/unit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index 0a02e38aa8..e6e67d27c8 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -2840,7 +2840,7 @@ int unit_deserialize(Unit *u, FILE *f, FDSet *fds) { } } -int unit_add_node_link(Unit *u, const char *what, bool wants) { +int unit_add_node_link(Unit *u, const char *what, bool wants, UnitDependency dep) { Unit *device; _cleanup_free_ char *e = NULL; int r; @@ -2867,7 +2867,9 @@ int unit_add_node_link(Unit *u, const char *what, bool wants) { if (r < 0) return r; - r = unit_add_two_dependencies(u, UNIT_AFTER, u->manager->running_as == MANAGER_SYSTEM ? UNIT_BINDS_TO : UNIT_WANTS, device, true); + r = unit_add_two_dependencies(u, UNIT_AFTER, + u->manager->running_as == MANAGER_SYSTEM ? dep : UNIT_WANTS, + device, true); if (r < 0) return r; |