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.
This commit is contained in:
parent
5d130cc45c
commit
fd80b6fc67
@ -41,9 +41,13 @@ start()
|
|||||||
rc=0
|
rc=0
|
||||||
else
|
else
|
||||||
for x in ${critical_mounts}; do
|
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
|
done
|
||||||
[-z "$critical" ] && rc=0
|
[ -z "$critical" ] && rc=0
|
||||||
fi
|
fi
|
||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
@ -46,9 +46,13 @@ start()
|
|||||||
rc=0
|
rc=0
|
||||||
else
|
else
|
||||||
for x in ${critical_mounts}; do
|
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
|
done
|
||||||
[-z "$critical" ] && rc=0
|
[ -z "$critical" ] && rc=0
|
||||||
fi
|
fi
|
||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user