summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMichal Koutný <mkoutny@suse.com>2016-04-19 18:44:40 +0200
committerMichal Koutný <mkoutny@suse.com>2016-04-25 13:12:02 +0200
commit26919ac110c543291b1ad6fa6f22f56253de704d (patch)
tree1eb492cd75ecf4efd5062ea1a564cda0c2171562 /src/core
parent0c1792efe422622c3c8a11b70a722147304da4cb (diff)
Always create dependencies for bind mounts
Dependencies were not created for _netdev mountpoints, the reasoning for this is in the commit fc676b00, i.e. to avoid adding dependencies for network mountpoints where What= appears like a path. Thus proposing this semantically more correct condition when dependencies are added for _actual_ bind mounts irrespectively of network flag. Consequently it allows to add _netdev option to bind mounts, which includes them in remote-fs.target, which simplifies configuration.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index 632c5c824c..efb4a39eb4 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -274,7 +274,7 @@ static int mount_add_mount_links(Mount *m) {
pm = get_mount_parameters_fragment(m);
if (pm && pm->what &&
path_is_absolute(pm->what) &&
- !mount_is_network(pm)) {
+ (mount_is_bind(pm) || !mount_is_network(pm))) {
r = unit_require_mounts_for(UNIT(m), pm->what);
if (r < 0)