From owner-freebsd-rc@FreeBSD.ORG Mon Oct 14 16:54:36 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BF488350 for ; Mon, 14 Oct 2013 16:54:36 +0000 (UTC) (envelope-from bounces+73574-d723-freebsd-rc=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 61B4926C3 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-178.sjc1.sendgrid.net with SMTP id filter-178.20129.525C21CB5 Mon, 14 Oct 2013 16:54:35 +0000 (GMT) Received: from mail.tarsnap.com (unknown [10.60.208.15]) by mi13 (SG) with ESMTP id 141b7e4022c.4bb8.10ea1fb for ; Mon, 14 Oct 2013 16:54:35 +0000 (UTC) Received: (qmail 88671 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: ChUA/E68MWtQtYrYVmEHIGuqNmShXrFL3cq8iGM7RqXUjTAWJRcZYNKxQTmJM9ICvPPBoN3Mvj5/bEmvNNx4nXB98ZQKSotGo+6pkn7k24hXlOXi5WtbyPT9E9EEVWR9Xci4R3G7sBNfp86HYytZ5DTNk8HkigMKjqt3b96lLio= Cc: freebsd-current@FreeBSD.org, freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Oct 2013 16:54:36 -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