Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 22:31:00 -0500
From:      Brian Dean <bsd@bsdhome.com>
To:        "Clark C . Evans" <cce@clarkevans.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: read-only CD-ROM boot partition for vinum webfarm?
Message-ID:  <20020228223100.B22566@neutrino.bsdhome.com>
In-Reply-To: <20020227182331.C17592@doublegemini.com>; from cce@clarkevans.com on Wed, Feb 27, 2002 at 06:23:31PM -0500
References:  <20020227182331.C17592@doublegemini.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020228223100.B22566>