svn commit: r294021 - head/etc/rc.d

Edward Tomasz Napierala trasz at FreeBSD.org
Thu Jan 14 16:53:18 UTC 2016


Author: trasz
Date: Thu Jan 14 16:53:17 2016
New Revision: 294021
URL: https://svnweb.freebsd.org/changeset/base/294021

Log:
  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

Modified:
  head/etc/rc.d/mountcritlocal

Modified: head/etc/rc.d/mountcritlocal
==============================================================================
--- head/etc/rc.d/mountcritlocal	Thu Jan 14 16:31:00 2016	(r294020)
+++ head/etc/rc.d/mountcritlocal	Thu Jan 14 16:53:17 2016	(r294021)
@@ -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'


More information about the svn-src-all mailing list