summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/src/context_mount.c')
-rw-r--r--libmount/src/context_mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index 1e21db7c6..196e3a249 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -590,7 +590,8 @@ static int do_mount_by_pattern(struct libmnt_context *cxt, const char *pattern)
rc = do_mount(cxt, *fp);
if (mnt_context_get_status(cxt))
break;
- if (mnt_context_get_syscall_errno(cxt) != EINVAL)
+ if (mnt_context_get_syscall_errno(cxt) != EINVAL &&
+ mnt_context_get_syscall_errno(cxt) != ENODEV)
break;
}
mnt_free_filesystems(filesystems);