From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 9 16:00:01 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E874916A41C for ; Thu, 9 Jun 2005 16:00:01 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AEBA43D48 for ; Thu, 9 Jun 2005 16:00:00 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j59FxiqU026912; Thu, 9 Jun 2005 18:59:45 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) by orion.daedalusnetworks.priv (8.13.4/8.13.4) with ESMTP id j59FxgN7070651; Thu, 9 Jun 2005 18:59:42 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by orion.daedalusnetworks.priv (8.13.4/8.13.4/Submit) id j59FxghA070650; Thu, 9 Jun 2005 18:59:42 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Thu, 9 Jun 2005 18:59:42 +0300 From: Giorgos Keramidas To: Dag-Erling Sm?rgrav Message-ID: <20050609155941.GA70079@orion.daedalusnetworks.priv> References: <20050608235221.GA71575@ranger.acns.ab.ca> <86ll5kdokw.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86ll5kdokw.fsf@xps.des.no> Cc: freebsd-hackers@freebsd.org Subject: Re: Bootable CDROM creation system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2005 16:00:02 -0000 On 2005-06-09 08:35, Dag-Erling Sm?rgrav wrote: > Chad David 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//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 :)