aboutsummaryrefslogtreecommitdiff
path: root/init.d/localmount.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-19 12:32:56 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-19 13:34:04 -0600
commitcd7883d25d0a9321b68df1c1e6ad9662306fa9e7 (patch)
treedf1379db18730eac6c26dc00488ae97bcf93c26b /init.d/localmount.in
parent62b49b2a3ad1c13012305b4d7281d7f6543c70d7 (diff)
localmount: Allow users to control whether errors are ignored
X-Gentoo-Bug: 572138 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=572138
Diffstat (limited to 'init.d/localmount.in')
-rw-r--r--init.d/localmount.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.d/localmount.in b/init.d/localmount.in
index a2b7a8a0..cfc841a7 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -39,6 +39,11 @@ start()
rc=$?
if [ "$RC_UNAME" != Linux ]; then
rc=0
+ elif yesno "${ignore_mount_errors:-NO}"; then
+ if [ $rc -ne 0 ]; then
+ ewarn "localmount: errors detected, but ignored"
+ fi
+ rc=0
fi
return $rc
}