diff options
author | Mike Frysinger | 2016-01-20 21:20:08 +0100 |
---|---|---|
committer | Karel Zak | 2016-01-21 10:50:20 +0100 |
commit | e4520bf20fbcfb62d410f6772ccd2063a69cda5d (patch) | |
tree | d2fd815366b27386b115e9fb012e275ad28dd1e1 /sys-utils/mount.c | |
parent | chrt: use sched_getattr() (diff) | |
download | kernel-qcow2-util-linux-e4520bf20fbcfb62d410f6772ccd2063a69cda5d.tar.gz kernel-qcow2-util-linux-e4520bf20fbcfb62d410f6772ccd2063a69cda5d.tar.xz kernel-qcow2-util-linux-e4520bf20fbcfb62d410f6772ccd2063a69cda5d.zip |
mount: allow nofail to silence ENOMEDIUM cases
Allow people to use nofail to ignore empty cd/dvd drive errors.
URL: https://bugs.gentoo.org/559356
Reported-by: William Hubbs <williamh@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r-- | sys-utils/mount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 73f9d0b65..01eaccb39 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -628,6 +628,9 @@ try_readonly: break; case ENOMEDIUM: + if (uflags & MNT_MS_NOFAIL) + return MOUNT_EX_SUCCESS; + warnx(_("no medium found on %s"), src); break; |