summaryrefslogtreecommitdiff
path: root/src/mount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-25 21:24:21 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-25 21:24:21 +0200
commit81bf310edce1fccb2720b48fcc5f4bdbd187cd55 (patch)
tree3fd5c181df6765448e23f21956f0372a7e7a1540 /src/mount.c
parentca2937ce0bf43e657c131000a2dc7f34c5b2291a (diff)
mount: imply noauto for mount points configured with native mount files
Diffstat (limited to 'src/mount.c')
-rw-r--r--src/mount.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mount.c b/src/mount.c
index 08d5de28d7..5d5857f5af 100644
--- a/src/mount.c
+++ b/src/mount.c
@@ -266,7 +266,11 @@ static int mount_add_target_links(Mount *m) {
return unit_add_two_dependencies(tu, UNIT_AFTER, UNIT_WANTS, UNIT(am), true);
} else {
- if (!noauto && handle)
+ /* Automatically add mount points that aren't natively
+ * configured to local-fs.target */
+ if (!noauto &&
+ handle &&
+ !m->from_fragment)
if (user || m->meta.manager->running_as == MANAGER_SYSTEM)
if ((r = unit_add_dependency(tu, UNIT_WANTS, UNIT(m), true)) < 0)
return r;