From owner-freebsd-current@FreeBSD.ORG Mon Oct 14 16:52:15 2013 Return-Path: Delivered-To: freebsd-current@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 5FE981FE for ; Mon, 14 Oct 2013 16:52:15 +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 0EC7F26A6 for ; Mon, 14 Oct 2013 16:52:14 +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=hqG6oe06w4CXi8S9XwbVCMld+Bs=; b=CL/tb8Go1Q3DugdV8k rrKU06rfHzVlofXQOjFzk48UgjfdO4rosMXyy3cm1eEBj9QyXVRNMb1abCQbAYqQ rNNnXdZpZ2HLTngzV/N/WV2Aoe/EmEdwhPn/kvenEvNjZ9UE2PrrfTUyk9dF+fBw RbodsOjzcBir30fPhkGVwCQgk= Received: by mf33.sendgrid.net with SMTP id mf33.4238.525C213D7 Mon, 14 Oct 2013 16:52:13 +0000 (GMT) Received: from mail.tarsnap.com (unknown [10.60.208.15]) by mi20 (SG) with ESMTP id 141b7e1d997.61f5.b52117 for ; Mon, 14 Oct 2013 16:52:13 +0000 (UTC) Received: (qmail 88618 invoked from network); 14 Oct 2013 16:52:12 -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:52:12 -0000 Received: (qmail 10679 invoked from network); 14 Oct 2013 16:51:22 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 14 Oct 2013 16:51:22 -0000 Message-ID: <525C210A.2000306@freebsd.org> Date: Mon, 14 Oct 2013 09:51:22 -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: Nick Hibma Subject: Re: RFC: support for "first boot" rc.d scripts References: <525B258F.3030403@freebsd.org> <41F1219E-4DCC-4B04-A1DC-40038809556B@van-laarhoven.org> In-Reply-To: <41F1219E-4DCC-4B04-A1DC-40038809556B@van-laarhoven.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/F6tz08zFvYUkvTz9x4wtidg2lR5lnvTopD/6Uik507TVmZxTadkpb/JrD6JEGeenoRYMrEf/M7F3FUoZ4LSHH065IvNa53pL0vWGEQABoXuH5gPIlce2jBBCRCNQHDgc= Cc: FreeBSD current , 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:52:15 -0000 Hi Nick, On 10/14/13 00:59, Nick Hibma wrote: > Sounds useful: We have nanobsd images that configure a hard disk if present, but obviously only need to be run once. > > However: NanoBSD stores uses a memory disk for /etc and stores it's permanent scripts in /conf/* (/etc/rc.initdiskless) and/or /cfg (NanoBSD) so I doubt whether the 'embedded systems' argument is of much use, as deleting the script or flagging 'firstboot' is non-permanent. Yes, it's hard to store state on diskless systems... but I figured that anyone building a diskless system would know to not create a "run firstboot scripts" marker. And not all embedded systems are diskless... -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid