From owner-freebsd-questions Thu Jan 16 16:14:18 2003 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 5C81A37B401 for ; Thu, 16 Jan 2003 16:14:15 -0800 (PST) Received: from smtp.a1poweruser.com (oh-chardon6a-34.clvhoh.adelphia.net [68.169.105.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C4EC43F1E for ; Thu, 16 Jan 2003 16:14:14 -0800 (PST) (envelope-from barbish@a1poweruser.com) Received: from barbish (unknown [10.0.10.6]) by smtp.a1poweruser.com (Postfix) with SMTP id B2860184; Thu, 16 Jan 2003 19:22:01 -0500 (EST) Reply-To: From: "JoeB" To: "Warren Block" , "Garance A Drosihn" , Cc: "FreeBSD Questions" Subject: RE: Bootable CDs (was Re: Interest in diskless booting?) Date: Thu, 16 Jan 2003 19:14:12 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 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