Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2003 19:14:12 -0500
From:      "JoeB" <barbish@a1poweruser.com>
To:        "Warren Block" <wblock@wonkity.com>, "Garance A Drosihn" <drosih@rpi.edu>, <lansil@users.sourceforge.net>
Cc:        "FreeBSD Questions" <questions@FreeBSD.ORG>
Subject:   RE: Bootable CDs (was Re: Interest in diskless booting?)
Message-ID:  <MIEPLLIBMLEEABPDBIEGIEMDDDAA.barbish@a1poweruser.com>
In-Reply-To: <Pine.BSF.4.21.0212081758440.28087-100000@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Have you been able to get any of the methods to work repeatable?

-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Warren
Block
Sent: Sunday, December 08, 2002 9:16 PM
To: Garance A Drosihn; lansil@users.sourceforge.net
Cc: FreeBSD Questions
Subject: Bootable CDs (was Re: Interest in diskless booting?)

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


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?MIEPLLIBMLEEABPDBIEGIEMDDDAA.barbish>