Date: Thu, 14 Jan 2016 16:53:17 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r294021 - head/etc/rc.d Message-ID: <201601141653.u0EGrHPu072850@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601141653.u0EGrHPu072850>