From owner-freebsd-hackers Thu Feb 28 19:33:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.bsdhome.com (rdu25-2-113.nc.rr.com [24.25.2.113]) by hub.freebsd.org (Postfix) with ESMTP id 3023C37B402 for ; Thu, 28 Feb 2002 19:32:14 -0800 (PST) Received: from neutrino.bsdhome.com (jupiter [192.168.220.13]) by smtp.bsdhome.com (8.11.3nb1/8.11.4) with ESMTP id g213W8d22620 for ; Thu, 28 Feb 2002 22:32:08 -0500 (EST) Received: (from bsd@localhost) by neutrino.bsdhome.com (8.11.6/8.11.6) id g213V0E23239; Thu, 28 Feb 2002 22:31:00 -0500 (EST) (envelope-from bsd) Date: Thu, 28 Feb 2002 22:31:00 -0500 From: Brian Dean To: "Clark C . Evans" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: read-only CD-ROM boot partition for vinum webfarm? Message-ID: <20020228223100.B22566@neutrino.bsdhome.com> References: <20020227182331.C17592@doublegemini.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020227182331.C17592@doublegemini.com>; from cce@clarkevans.com on Wed, Feb 27, 2002 at 06:23:31PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 27, 2002 at 06:23:31PM -0500, Clark C . Evans wrote: > > Hello. I was wondering if it is possible to make a read-only > boot partition (core kernel, static configuration, and /usr) > for a web-farm application. I've put together a few scripts to help set this up. I've been happily using this setup for about a year or so. These are at: http://people.freebsd.org/~bsd/cdroot/ These scripts create an image that can be burned on to a CD and then booted from. I've also got hooks in there so that if you have a floppy disk present with a /etc on it, it will be used to override files in the system /etc. This allows one to use the same CD for many applications and have per-system customizations come off the floppy. For example, I've put together firewalls that use this and the hostname, firewall rules, etc, are copied from the floppy. Also, I've written a simple installer script that gets dropped at /etc/inst on the CD. If you build a FreeBSD release and copy disc1 of that release to /dist on the CD, the installer script can be used to install onto a new system. It's nowhere near a full sysinstall replacement, but it does what I want with minimal questions. There are a few minor issues that I need to fix, mainly that I have ksh installed in /bin/ksh and that is used by the scripts, which ends up biting people. I keep meaning to clean that up and use /bin/sh solely. However, I use ksh for its array handling and I need to convert those to the really hokey method of doing arrays in /bin/sh. -Brian -- Brian Dean bsd@FreeBSD.org bsd@bsdhome.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message