From owner-freebsd-questions@FreeBSD.ORG Mon Apr 20 12:18:47 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27357106566C for ; Mon, 20 Apr 2009 12:18:47 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id F12C78FC0A for ; Mon, 20 Apr 2009 12:18:46 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 5AE7D31D45E; Mon, 20 Apr 2009 08:18:46 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 20 Apr 2009 08:18:46 -0400 X-Sasl-enc: j9bPNHmCyb4fMZ7AF1FoIQ+C/qhRY6lKgnoRxAuW4wdK 1240229926 Received: from [10.0.1.4] (c-66-41-132-62.hsd1.mn.comcast.net [66.41.132.62]) by mail.messagingengine.com (Postfix) with ESMTPSA id EF4BA4D49A; Mon, 20 Apr 2009 08:18:45 -0400 (EDT) Message-Id: From: Josh Paetzel To: Peter Wang In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Mon, 20 Apr 2009 07:19:00 -0500 References: X-Mailer: Apple Mail (2.930.3) Cc: freebsd-questions@freebsd.org Subject: Re: How to create a livecd without compiling everything. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 12:18:47 -0000 On Apr 20, 2009, at 1:23 AM, Peter Wang wrote: > > Hi, all. > > I want to create a customized freebsd livecd, and i have read quite a > lot guides about how to do that. but the problem is: most of these > need make buildworld, make buildkernel ... I think it's hard for my > notebook do that. so is there a simpler/quicker way in which i can > create a livecd, what i want to be included in the livecd are the base > freebsd system plus some customized packages/config files. In order to create a livecd you need to run mkisofs somewhere that has a complete copy of FreeBSD. There are two options for this, one being running it against the live install of your system (ala /) and the other option is populating a stage directory. Most guides assume that the easiest way to do this is via the DESTDIR=/mystagedir option of make installworld installkernel distribution, and it probably is the easiest way, assuming you have done make buildworld buildkernel In your case where this is an undesirable option you can do one of a few things. 1) Use the live system to build the stage directory... # mkdir /usr/mystage ; ( cd / ; tar --exclude /usr/mystage -cf - .) | ( cd /usrr/mystage -xf - ) 2) copy over /usr/src and /usr/obj from a faster machine that's run make buildworld buildkernel and then use make installworld intallkernel distribution to build the stage dir 3) Use your live system directly to run mkisofs Thanks, Josh Paetzel