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>
This commit is contained in:
Mike Frysinger 2016-01-20 15:20:08 -05:00 committed by Karel Zak
parent acde3a05a9
commit e4520bf20f

View file

@ -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;