Date: Tue, 30 Dec 2014 02:33:48 +0000 From: Glen Barber <gjb@FreeBSD.org> To: Ian Lepore <ian@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: <20141230023348.GA7902@hub.FreeBSD.org> In-Reply-To: <1419893841.1018.269.camel@freebsd.org> References: <201412292232.sBTMWeMB096275@svn.freebsd.org> <1419893841.1018.269.camel@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Mon, Dec 29, 2014 at 03:57:21PM -0700, Ian Lepore wrote: > 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.) > Bah, you're right. I'll fix it once I get a few (unrelated, but conflicting) changes committed. Glen [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUog8HAAoJEAMUWKVHj+KTHIkP/A7AUq4SWfzAsH0+0FhOZ/ed izZXxpsg6LWG2BP4NjD0uBXiRScKXtHuBvhrRgtn5H1fahCxfZeePTdqP4UbCmFE nutz09S4F25w6du6uG82XZNJFgY2ZDSw0LGKKtzFdGvYMCyDh+GrIgSiIrF8w5NN qG8Z+favMgI6gUUOlG1l8YzmaMXS8WZ4YDRWsQKydFfigxQ8gJJZJCg/vCDKA/pF vUZh/s3/MX7H/nQo+89+tWjekHjcXJYsZWPCs5M8fWfboubrrIKNHYRCGjLACa6m qQJWowy3/wySlOrgzoM7rEIaFG/nnSgsBvRZuAePmZ2m1/P5e0orZ5XoD2NdnebG QDgyJmGctHlMWSjN+Dc/qeCiGAjVvCkYH1CGBa8WslWAH3o8mcHfeZ2asGQtLiLs 3aKWHiRgmOQr8WZ71EvIE0yrVt4UMOmtCW+9MkbTmYa2Y+2uEYJURAvfGZT3byhp 8GEm5iXd1xr6ZtChn+q4X6/eHGA65GyqObkSA3jYjwKuW+OpRuhPApAqgGlg2+bB Io+9yXeRnsHa9Qm6v24Ni1gJAcG4Z2IJgw46eOuSKYqrjlmzzWhIdZB1T7XoyhAB DiNVAOpEDcSsEuiqC9/7f5yyY3WW4mlZ2WvTT2d+J95tXXiTFVejAkINBPXVwnpA Xw2u9Ulcy/pYpQLbKPx4 =La4B -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141230023348.GA7902>
