We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a306ec1 commit 237ecfeCopy full SHA for 237ecfe
src/core/mount.c
@@ -1010,7 +1010,9 @@ static void mount_enter_mounting(Mount *m) {
1010
p = get_mount_parameters_fragment(m);
1011
if (p && mount_is_bind(p)) {
1012
r = mkdir_p_label(p->what, m->directory_mode);
1013
- if (r < 0)
+ /* mkdir_p_label() can return -EEXIST if the target path exists and is not a directory - which is
1014
+ * totally OK, in case the user wants us to overmount a non-directory inode. */
1015
+ if (r < 0 && r != -EEXIST)
1016
log_unit_error_errno(UNIT(m), r, "Failed to make bind mount source '%s': %m", p->what);
1017
}
1018
0 commit comments