From owner-freebsd-current@FreeBSD.ORG Mon Oct 14 16:54:37 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A24FE358 for ; Mon, 14 Oct 2013 16:54:37 +0000 (UTC) (envelope-from bounces+73574-dfb6-freebsd-current=freebsd.org@sendgrid.me) Received: from o3.shared.sendgrid.net (o3.shared.sendgrid.net [208.117.48.85]) by mx1.freebsd.org (Postfix) with SMTP id 4413826C7 for ; Mon, 14 Oct 2013 16:54:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=from:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpapi; bh=0kISZbOR38SkcdNY1JMLJQ6HxRY=; b=Ygbx9OUu/4wdcs89zU qNdiaMd+/y58J0j2tzZgnDjYFNEh6P2veGgwsCZptiUlKYiRnwHGnl1ypOKjgQ7U QzlTvoY/JcZ9m2zbVDO4jcpK5yi7HLAkQ8qfHg6T70DGJCw6R8GNw/81NZ4FrVDq Nc2Wzo5aY7BnaGcKN3edLDvZw= Received: by filter-011.sjc1.sendgrid.net with SMTP id filter-011.16430.525C21CB4 Mon, 14 Oct 2013 16:54:35 +0000 (GMT) Received: from mail.tarsnap.com (unknown [10.60.208.15]) by mi14 (SG) with ESMTP id 141b7e40308.3726.1acba51 for ; Mon, 14 Oct 2013 16:54:35 +0000 (UTC) Received: (qmail 88673 invoked from network); 14 Oct 2013 16:54:34 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 14 Oct 2013 16:54:34 -0000 Received: (qmail 10689 invoked from network); 14 Oct 2013 16:53:43 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 14 Oct 2013 16:53:43 -0000 Message-ID: <525C2197.9020405@freebsd.org> Date: Mon, 14 Oct 2013 09:53:43 -0700 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Hiroki Sato Subject: Re: RFC: support for "first boot" rc.d scripts References: <525B258F.3030403@freebsd.org> <20131014.210726.1989833413225901961.hrs@allbsd.org> In-Reply-To: <20131014.210726.1989833413225901961.hrs@allbsd.org> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SG-EID: XhyBwObMhraAR+zdwMupjQ6BIqbhdEfc+6p+uBxS7S/F6tz08zFvYUkvTz9x4wtiLSVg6pZ7XHkaMG6t/hHd+weRiw6Yf6aSBscE/UypbcP1ATFCockRwiAzGKKTAulqV0tcGK1U1YwYoKMZhs2e01XaLWecgAaPFoeYzrpXfBI= Cc: freebsd-current@FreeBSD.org, freebsd-rc@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Oct 2013 16:54:37 -0000 On 10/14/13 05:07, Hiroki Sato wrote: > Colin Percival wrote > in <525B258F.3030403@freebsd.org>: > > cp> I've attached a very simple patch which makes /etc/rc: > > cp> +if ! [ -e /var/db/firstboot ]; then > cp> + skip="$skip -s firstboot" > cp> +fi > > At this stage, it is possible that /var/db does not exist because it > is before rc.d/mountcritlocal. Ah, good point. I guess we need something on / then? -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid