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' _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"