From 26919ac110c543291b1ad6fa6f22f56253de704d Mon Sep 17 00:00:00 2001 From: Michal Koutný Date: Tue, 19 Apr 2016 18:44:40 +0200 Subject: 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. --- src/core/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-54-g00ecf