From b047ea47e97d7e8b96d6d0e064613f6860c8eb36 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 1 Sep 2015 14:41:07 -0500 Subject: [PATCH] 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 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 }