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.
This commit is contained in:
parent
b652752339
commit
b047ea47e9
@ -31,8 +31,6 @@ start()
|
|||||||
rc=$?
|
rc=$?
|
||||||
if [ "$RC_UNAME" != Linux ]; then
|
if [ "$RC_UNAME" != Linux ]; then
|
||||||
rc=0
|
rc=0
|
||||||
elif [ "$rc" = 64 ]; then
|
|
||||||
rc=0
|
|
||||||
fi
|
fi
|
||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,6 @@ start()
|
|||||||
ewend $rc "Could not mount all network filesystems"
|
ewend $rc "Could not mount all network filesystems"
|
||||||
if [ "$RC_UNAME" != Linux ]; then
|
if [ "$RC_UNAME" != Linux ]; then
|
||||||
rc=0
|
rc=0
|
||||||
elif [ "$rc" = 64 ]; then
|
|
||||||
rc=0
|
|
||||||
fi
|
fi
|
||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user