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:
parent
fcbfdb37a1
commit
0851a9b1a1
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user