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:
parent
acde3a05a9
commit
e4520bf20f
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue