aboutsummaryrefslogtreecommitdiff
path: root/init.d/localmount.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-04-26 12:43:50 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-04-26 12:43:50 -0500
commitfd80b6fc67ec6a0fe4853167fb67ee40bb51b742 (patch)
tree40a7b85e7d6263b3dfb45478013d36614cdd5fe1 /init.d/localmount.in
parent5d130cc45cd334fd38b0c6874bcc81ac74636217 (diff)
localmount/netmount: clean up critical mount processing
Fix a typo and do not fail if a path in critical_mounts is not listed as a critical mount does not get mounted.
Diffstat (limited to 'init.d/localmount.in')
-rw-r--r--init.d/localmount.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/init.d/localmount.in b/init.d/localmount.in
index 96ccc44b..b7de0d82 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -41,9 +41,13 @@ start()
rc=0
else
for x in ${critical_mounts}; do
- mountinfo -q $x || critical=x
+ fstabinfo -q $x || continue
+ if ! mountinfo -q $x; then
+ critical=x
+ eerror "Failed to mount $x"
+ fi
done
- [-z "$critical" ] && rc=0
+ [ -z "$critical" ] && rc=0
fi
return $rc
}