commit: b047ea47e97d7e8b96d6d0e064613f6860c8eb36
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Tue Sep 1 19:41:07 2015 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Sep 1 19:41:07 2015 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=b047ea47
localmount/netmount: on Linux, fail if some file systems do not mount
The following return codes are returned by mount -a:
0: all file systems mounted.
32: no file systems mounted.
64: some file systems mounted.
The localmount/netmount services should fail if all file systems that
should mount did not mount.
init.d/localmount.in | 2 --
init.d/netmount.in | 2 --
2 files changed, 4 deletions(-)
diff --git a/init.d/localmount.in b/init.d/localmount.in
index 7b94790..f4bf15f 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -31,8 +31,6 @@ start()
rc=$?
if [ "$RC_UNAME" != Linux ]; then
rc=0
- elif [ "$rc" = 64 ]; then
- rc=0
fi
return $rc
}
diff --git a/init.d/netmount.in b/init.d/netmount.in
index 9f8537d..d9cf9c5 100644
--- a/init.d/netmount.in
+++ b/init.d/netmount.in
@@ -25,8 +25,6 @@ start()
ewend $rc "Could not mount all network filesystems"
if [ "$RC_UNAME" != Linux ]; then
rc=0
- elif [ "$rc" = 64 ]; then
- rc=0
fi
return $rc
}