After r290196, the kernel won't wait for stuff like gmirror nodes
authortrasz <trasz@FreeBSD.org>
Fri, 30 Oct 2015 15:52:10 +0000 (15:52 +0000)
committertrasz <trasz@FreeBSD.org>
Fri, 30 Oct 2015 15:52:10 +0000 (15:52 +0000)
commite52d6f1e4a485dde1baf3a1e057bcdbf73ebbf7b
treede89f37ec395b87059ddc577708871cb63ebb789
parent3b970d7ccc00f84d53bef1b8094f2907ff67b750
After r290196, the kernel won't wait for stuff like gmirror nodes
if they are not required for mounting rootfs.  However, it's possible
that some setups try to mount them in mountcritlocal (ie from fstab).

Export the list of current root mount holds using a new sysctl,
vfs.root_mount_hold, and make mountcritlocal retry if "mount -a" fails
and the list is not empty.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3709
etc/defaults/rc.conf
etc/rc.d/mountcritlocal
sys/kern/vfs_mountroot.c