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/mount.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/mount.c')
-rw-r--r-- | src/core/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 9b44357e90..2ad4ad4f42 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -335,7 +335,7 @@ static int mount_add_device_links(Mount *m) { if (mount_is_auto(p) && UNIT(m)->manager->running_as == MANAGER_SYSTEM) device_wants_mount = true; - r = unit_add_node_link(UNIT(m), p->what, device_wants_mount); + r = unit_add_node_link(UNIT(m), p->what, device_wants_mount, m->from_fragment ? UNIT_BINDS_TO : UNIT_REQUIRES); if (r < 0) return r; |