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
This commit is contained in:
parent
62b49b2a3a
commit
cd7883d25d
@ -1,3 +1,9 @@
|
|||||||
# Stop the unmounting of certain points.
|
# Stop the unmounting of certain points.
|
||||||
# This could be useful for some NFS related work.
|
# This could be useful for some NFS related work.
|
||||||
#no_umounts="/dir1:/var/dir2"
|
#no_umounts="/dir1:/var/dir2"
|
||||||
|
#
|
||||||
|
# Ignore errors when mounting local file systems.
|
||||||
|
# This should be left alone unless you know what you are doing. If it is
|
||||||
|
# set to yes, not only will we allow mount failures, but we will ignore
|
||||||
|
# syntax errors in fstab.
|
||||||
|
#ignore_mount_errors="NO"
|
||||||
|
@ -39,6 +39,11 @@ start()
|
|||||||
rc=$?
|
rc=$?
|
||||||
if [ "$RC_UNAME" != Linux ]; then
|
if [ "$RC_UNAME" != Linux ]; then
|
||||||
rc=0
|
rc=0
|
||||||
|
elif yesno "${ignore_mount_errors:-NO}"; then
|
||||||
|
if [ $rc -ne 0 ]; then
|
||||||
|
ewarn "localmount: errors detected, but ignored"
|
||||||
|
fi
|
||||||
|
rc=0
|
||||||
fi
|
fi
|
||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user