summaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.c
diff options
context:
space:
mode:
authorKarel Zak2014-04-07 12:09:11 +0200
committerKarel Zak2014-04-07 12:09:11 +0200
commitb6bdccc710642b43694ec49e563cdfc0e9cd81fa (patch)
tree52b30ae1ee0f2480a5338aba7d5c7b1d974e5aed /sys-utils/mount.c
parentumount: more robust success message for --all (diff)
downloadkernel-qcow2-util-linux-b6bdccc710642b43694ec49e563cdfc0e9cd81fa.tar.gz
kernel-qcow2-util-linux-b6bdccc710642b43694ec49e563cdfc0e9cd81fa.tar.xz
kernel-qcow2-util-linux-b6bdccc710642b43694ec49e563cdfc0e9cd81fa.zip
mount: apply "nofail" to MNT_ERR_NOSOURCE libmount error
fstab: UUID=nonexist /mnt/nonexist1 ext4 nofail 0 1 # mount -av mount: can't find UUID=nonexist .. this is bug of course. Reported-by: Patrick McLean <chutzpah@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r--sys-utils/mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index 4c5f0e528..74a1a84f2 100644
--- a/sys-utils/mount.c
+++ b/sys-utils/mount.c
@@ -431,6 +431,8 @@ try_readonly:
warnx(_("you must specify the filesystem type"));
return MOUNT_EX_USAGE;
case -MNT_ERR_NOSOURCE:
+ if (uflags & MNT_MS_NOFAIL)
+ return MOUNT_EX_SUCCESS;
if (src)
warnx(_("can't find %s"), src);
else