diff options
author | trasz <trasz@FreeBSD.org> | 2016-01-14 16:53:17 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-01-14 16:53:17 +0000 |
commit | 4845d77f0905594d8da33b0eda29ca8bc529d3a9 (patch) | |
tree | 2c33889e8878692869d4384273d3a77b51148f18 /etc/rc.d | |
parent | 0f8d03361bd4923d99c8f0460214250f06efd929 (diff) | |
download | FreeBSD-src-4845d77f0905594d8da33b0eda29ca8bc529d3a9.zip FreeBSD-src-4845d77f0905594d8da33b0eda29ca8bc529d3a9.tar.gz |
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
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/mountcritlocal | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/mountcritlocal b/etc/rc.d/mountcritlocal index 1513ec7..0833199 100755 --- a/etc/rc.d/mountcritlocal +++ b/etc/rc.d/mountcritlocal @@ -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' |