aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-09-01 14:41:07 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-09-01 14:41:07 -0500
commitb047ea47e97d7e8b96d6d0e064613f6860c8eb36 (patch)
tree1260ad8d8539a3da3c80c87d2bb280937b22a44d
parentb652752339690e10a55ae50d046f4cf2a98daf1a (diff)
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.
-rw-r--r--init.d/localmount.in2
-rw-r--r--init.d/netmount.in2
2 files changed, 0 insertions, 4 deletions
diff --git a/init.d/localmount.in b/init.d/localmount.in
index 7b947903..f4bf15f6 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 9f8537d1..d9cf9c56 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
}