summaryrefslogtreecommitdiff
path: root/src/core/mount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-16 01:02:27 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-16 01:02:27 +0200
commit2dbd4a9454f127f600e5764b7883a472eeb32be0 (patch)
tree3af334a02a790f15e2be2b1b86ec9132fb82f136 /src/core/mount.c
parent8eb5a6e001afd3da22fe4c16fe786a362d46733e (diff)
mount: add new SloppyOptions= setting for mount units, mapping to mount(8)'s "-s" switch
Diffstat (limited to 'src/core/mount.c')
-rw-r--r--src/core/mount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index ca21ec7d0e..aea2ab17c9 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -935,7 +935,7 @@ static void mount_enter_mounting(Mount *m) {
r = exec_command_set(
m->control_command,
"/bin/mount",
- "-n",
+ m->sloppy_options ? "-ns" : "-n",
m->parameters_fragment.what,
m->where,
"-t", m->parameters_fragment.fstype ? m->parameters_fragment.fstype : "auto",
@@ -983,7 +983,7 @@ static void mount_enter_remounting(Mount *m) {
r = exec_command_set(
m->control_command,
"/bin/mount",
- "-n",
+ m->sloppy_options ? "-ns" : "-n",
m->parameters_fragment.what,
m->where,
"-t", m->parameters_fragment.fstype ? m->parameters_fragment.fstype : "auto",