Fix the code to retry mount attempt in mountcritlocal if there are

any root mount holds.  The previous one used a wrong conditional - the
"err=$?" assignment resets "$?" to 0.

Submitted by:	jilles@
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2016-01-14 16:53:17 +00:00
parent fcbfdb37a1
commit 0851a9b1a1

View File

@ -44,7 +44,7 @@ mountcritlocal_start()
# and retry.
mount -a -t ${mount_excludes}
err=$?
if [ $? -ne 0 ]; then
if [ ${err} -ne 0 ]; then
echo
echo 'Mounting /etc/fstab filesystems failed,' \
'will retry after root mount hold release'