Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2002 19:15:42 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Garance A Drosihn <drosih@rpi.edu>, lansil@users.sourceforge.net
Cc:        FreeBSD Questions <questions@FreeBSD.ORG>
Subject:   Bootable CDs (was Re: Interest in diskless booting?)
Message-ID:  <Pine.BSF.4.21.0212081758440.28087-100000@wonkity.com>
In-Reply-To: <p05200f32ba18862f4a6a@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 8 Dec 2002, Garance A Drosihn wrote:

> One of the students here at RPI worked on a project for the custom
> cd-rom idea.  It's at
> 
> http://www.sourceforge.net/projects/freebsdtogo/

I've spent the weekend experimenting with the various methods of making
bootable FreeBSD CDs.

LiveCD died with an unlogged error just before it was ready to build an
ISO.  The project at http://www.bsdtoday.com/2002/March/Features646.html
went farther, but booted the CD into sysinstall.  freebsdtogo has worked
the best so far, although there were some missing boot files that needed
to be copied.  After that, it actually produced a bootable CD.  I'm
going to work on it some more, and try to work up at least a checklist.  
In the meantime, here are my notes:

(Note to potential users: some of this is speculation and reading
between the lines.  Consider it untested.  Lawrence, please feel free to
include this with your project if you like.)

CD to /home and untar the freebsdtogo archive. It'll create a togo
directory.

"Bundles" are directory trees of changes that will be made to the target
tree before the CD image is created.  There's a "default" bundle in the
/home/togo/bundles directory.  The "copy" subdirectory contains files
which will be copied over existing ones.  For example, the file
copy/etc/rc.conf would be copied over the sysinstall-generated rc.conf.

Packages (ports-type *.tgz packages) placed in the packages subdirectory
will be installed to the target tree before the CD is created.

The patch directory contains patches that will be made to the original
files, and the postpatch.sh script will be run afterwards.

rwmounts is a list of directories that will be created as memory
filesystems.

You'll probably want to either modify the default bundle directly, or
copy it, modify it, and give the bundle a new name.

Basic procedure:

Update or create bundle as described above.

cd /usr/src
make buildworld
cd /usr/src
make buildkernel
qcp -pR /boot /home/togo/trees/bin
make iso   (add BUNDLE=mybundlename if you're not using default)

The ISO file ends up in /home/togo/build/default/cdimage.iso, or 
/home/togo/build/mybundlename/cdimage.iso if you've used a different
bundle name.

-Warren Block * Rapid City, South Dakota USA


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0212081758440.28087-100000>