From owner-freebsd-rc@FreeBSD.ORG Mon Oct 14 16:52:15 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 C6DEF1FF for ; Mon, 14 Oct 2013 16:52:15 +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 68FA726A7 for ; Mon, 14 Oct 2013 16:52:15 +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 filter-134.sjc1.sendgrid.net with SMTP id filter-134.9265.525C213E1 Mon, 14 Oct 2013 16:52:14 +0000 (GMT) Received: from mail.tarsnap.com (unknown [10.60.208.13]) by mi19 (SG) with ESMTP id 141b7e1d9c9.19bb.18f7779 for ; Mon, 14 Oct 2013 16:52:13 +0000 (UTC) Received: (qmail 88619 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: ChUA/E68MWtQtYrYVmEHIGuqNmShXrFL3cq8iGM7RqVeZL0Y86r/aQ+6pqlGqylNmPlOwO6mofSXfSM2zFHcq/5MY+1wASBp/WE9AccvMSD/S813SMYuZ53hH2LSqhscE0oBMp25jr+mWYjOnQ4cGXN7wyqv6WzJwFMIDhiKdos= Cc: FreeBSD current , 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: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