Date: Mon, 29 Dec 2014 15:57:21 -0700 From: Ian Lepore <ian@freebsd.org> To: Glen Barber <gjb@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r276383 - head/release Message-ID: <1419893841.1018.269.camel@freebsd.org> In-Reply-To: <201412292232.sBTMWeMB096275@svn.freebsd.org> References: <201412292232.sBTMWeMB096275@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2014-12-29 at 22:32 +0000, Glen Barber wrote: > Author: gjb > Date: Mon Dec 29 22:32:39 2014 > New Revision: 276383 > URL: https://svnweb.freebsd.org/changeset/base/276383 > > Log: > Delay dropping to the mountroot prompt for 10 seconds > in case the root device is not yet ready. > > Sponsored by: The FreeBSD Foundation > > Modified: > head/release/Makefile > > Modified: head/release/Makefile > ============================================================================== > --- head/release/Makefile Mon Dec 29 21:59:44 2014 (r276382) > +++ head/release/Makefile Mon Dec 29 22:32:39 2014 (r276383) > @@ -201,6 +201,7 @@ system: packagesystem > echo sendmail_enable=\"NONE\" > release/etc/rc.conf > echo hostid_enable=\"NO\" >> release/etc/rc.conf > echo debug.witness.trace=0 >> release/etc/sysctl.conf > + echo kern.cam.boot_delay=\"10000\" >> release/boot/loader.conf > cp ${.CURDIR}/rc.local release/etc > touch ${.TARGET} > > @@ -226,6 +227,7 @@ bootonly: packagesystem > echo sendmail_enable=\"NONE\" > bootonly/etc/rc.conf > echo hostid_enable=\"NO\" >> bootonly/etc/rc.conf > echo debug.witness.trace=0 >> bootonly/etc/sysctl.conf > + echo kern.cam.boot_delay=\"10000\" >> bootonly/boot/loader.conf > cp ${.CURDIR}/rc.local bootonly/etc > > dvd: > @@ -248,6 +250,7 @@ dvd: > echo sendmail_enable=\"NONE\" > ${.TARGET}/etc/rc.conf > echo hostid_enable=\"NO\" >> ${.TARGET}/etc/rc.conf > echo debug.witness.trace=0 >> ${.TARGET}/etc/sysctl.conf > + echo kern.cam.boot_delay=\"10000\" >> ${.TARGET}/boot/loader.conf > cp ${.CURDIR}/rc.local ${.TARGET}/etc > touch ${.TARGET} > > This will hard-wait for 10 seconds even if all devices are ready to roll much earlier than that. An alternative is to set kern.mountroot.timeout which will keep trying the available root devices until the timeout expires and then drop you to the prompt, with the benefit of only waiting 4 seconds if that's how long it really took the device to become ready. (The default for kern.mountroot.timeout is 3 seconds.) -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1419893841.1018.269.camel>