From owner-freebsd-rc@FreeBSD.ORG Sun Feb 3 04:33:52 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7EDA56A8 for ; Sun, 3 Feb 2013 04:33:52 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 59681665 for ; Sun, 3 Feb 2013 04:33:51 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r134XpmI071844 for freebsd-rc@freebsd.org; Sun, 3 Feb 2013 04:33:51 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id ztth5afpymspwz9uiuhcx6qi86; for freebsd-rc@freebsd.org; Sun, 03 Feb 2013 04:33:51 +0000 (UTC) (envelope-from kientzle@freebsd.org) From: Tim Kientzle Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: "firstboot" keyword? Date: Sat, 2 Feb 2013 20:33:48 -0800 Message-Id: <4FD83C6A-AD4F-47CE-B011-3B34286D640E@freebsd.org> To: freebsd-rc@freebsd.org Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) 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: Sun, 03 Feb 2013 04:33:52 -0000 I'm experimenting with some rc.d scripts that would ideally only get run once the first time a system is booted. Is there any interest in trying to generalize this? I have in mind something like a "firstboot" keyword on an rc.d script: If it's there, the script would only be run the first time the system is booted. The specific thing I'm experimenting with right now is auto-sizing system images: I would like to distribute a system image for the new ARM boards that will automatically invoke growfs on first boot to resize itself to the actual media size. Such an image would fit on 2G cards but take advantage of a much bigger card if available. I can envision other things that could benefit from this sort of scheme as well. Tim