From owner-freebsd-questions Sun Dec 8 18:15:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67BC037B401 for ; Sun, 8 Dec 2002 18:15:45 -0800 (PST) Received: from wonkity.com (wonkity.com [63.93.4.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6CB543E4A for ; Sun, 8 Dec 2002 18:15:44 -0800 (PST) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost.wonkity.com [127.0.0.1]) by wonkity.com (8.12.1/8.11.6) with ESMTP id gB92FhuF028209; Sun, 8 Dec 2002 19:15:43 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.1/8.12.1/Submit) with ESMTP id gB92Fgxv028206; Sun, 8 Dec 2002 19:15:43 -0700 (MST)?g (envelope-from wblock@wonkity.com) Date: Sun, 8 Dec 2002 19:15:42 -0700 (MST) From: Warren Block To: Garance A Drosihn , lansil@users.sourceforge.net Cc: FreeBSD Questions Subject: Bootable CDs (was Re: Interest in diskless booting?) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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