summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2016-01-14 16:53:17 +0000
committertrasz <trasz@FreeBSD.org>2016-01-14 16:53:17 +0000
commit4845d77f0905594d8da33b0eda29ca8bc529d3a9 (patch)
tree2c33889e8878692869d4384273d3a77b51148f18 /etc
parent0f8d03361bd4923d99c8f0460214250f06efd929 (diff)
downloadFreeBSD-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')
-rwxr-xr-xetc/rc.d/mountcritlocal2
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'
OpenPOWER on IntegriCloud