From: Mike Frysinger Date: Wed, 20 Jan 2016 20:20:08 +0000 (-0500) Subject: mount: allow nofail to silence ENOMEDIUM cases X-Git-Tag: v2.28-rc1~176 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4520bf20fbcfb62d410f6772ccd2063a69cda5d;p=thirdparty%2Futil-linux.git 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 Signed-off-by: Mike Frysinger --- diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 73f9d0b655..01eaccb392 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;