Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jun 2005 18:59:42 +0300
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        Dag-Erling Sm?rgrav <des@des.no>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Bootable CDROM creation system
Message-ID:  <20050609155941.GA70079@orion.daedalusnetworks.priv>
In-Reply-To: <86ll5kdokw.fsf@xps.des.no>
References:  <20050608235221.GA71575@ranger.acns.ab.ca> <86ll5kdokw.fsf@xps.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-06-09 08:35, Dag-Erling Sm?rgrav <des@des.no> wrote:
> Chad David <davidc@acns.ab.ca> writes:
> > My company built a tool a few years back for creating a bootable cdrom
> > based on a running host FreeBSD 3/4 system, which promptly got shelved and
> > forgotten.I recently had to update it for FreeBSD 5 and thought that
> > perhaps the community at large could make use it before it gets forgotten
> > again.
>
> # cd /usr/src
> # make buildworld buildkernel
> # mkdir /tmp/cdrom
> # make installworld installkernel DESTDIR=/tmp/cdrom
> # cd /usr/src/etc
> # make distribution DESTDIR=/tmp/cdrom
> # mkisofs -o /tmp/cdrom.iso -r -no-emul-boot -b /tmp/cdrom/boot/cdboot /tmp/cdrom
> # burncd -s max data /tmp/cdrom.iso fixate eject
>
> did I leave anything out?

For completion's shake, before installkernel one may have to run:

  # cp /usr/src/sys/<arch>/conf/GENERIC.hints /tmp/cdrom/boot/device.hints

and then a minor nit.  The -b /tmp/cdrom/boot/cdboot option should be
relative to the CD-ROM root directory.  Otherwise mkisofs complains and
aborts.

But yeah, this is a great mini-guide for making a bootable CD :)




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