chiark / gitweb /
ask-password: also accept Backspace as first keypress as silent mode switch
[elogind.git] / src / mount.c
index 99867172c9816e85c5b1469f4397a7d1cfe16fe8..cc49b1993fc2a8bbf3184d531bdf6c7249b38986 100644 (file)
@@ -844,6 +844,10 @@ static void mount_enter_mounting(Mount *m) {
 
         mkdir_p(m->where, m->directory_mode);
 
+        /* create the source directory for bind-mounts if needed */
+        if (m->parameters_fragment.fstype && strcmp(m->parameters_fragment.fstype, "bind") == 0)
+                mkdir_p(m->parameters_fragment.what, m->directory_mode);
+
         if (m->from_fragment)
                 r = exec_command_set(
                                 m->control_command,