From owner-svn-src-head@FreeBSD.ORG Mon Dec 29 22:57:30 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9BBCAB0D; Mon, 29 Dec 2014 22:57:30 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 708762400; Mon, 29 Dec 2014 22:57:30 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Y5jFa-000F1o-JI; Mon, 29 Dec 2014 22:57:22 +0000 Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id sBTMvLRB019153; Mon, 29 Dec 2014 15:57:21 -0700 (MST) (envelope-from ian@freebsd.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/5MbJ8l94XIYLgo7x3I5DN Message-ID: <1419893841.1018.269.camel@freebsd.org> Subject: Re: svn commit: r276383 - head/release From: Ian Lepore To: Glen Barber Date: Mon, 29 Dec 2014 15:57:21 -0700 In-Reply-To: <201412292232.sBTMWeMB096275@svn.freebsd.org> References: <201412292232.sBTMWeMB096275@svn.freebsd.org> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.8 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2014 22:57:30 -0000 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