From owner-freebsd-current@FreeBSD.ORG Tue Dec 16 16:16:59 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17CE51065672 for ; Tue, 16 Dec 2008 16:16:59 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4CCD78FC2F for ; Tue, 16 Dec 2008 16:16:58 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from phenom.cordula.ws (phenom [192.168.254.60]) by fw.farid-hajji.net (Postfix) with ESMTP id 9F564366B0; Tue, 16 Dec 2008 17:16:55 +0100 (CET) Date: Tue, 16 Dec 2008 17:18:37 +0100 From: cpghost To: Saurabh Chopra Message-ID: <20081216161837.GB1426@phenom.cordula.ws> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-current@freebsd.org Subject: Re: build image from the source X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 16:16:59 -0000 On Tue, Dec 16, 2008 at 05:38:37PM +0530, Saurabh Chopra wrote: > Hi all, > > I am absolutely a newbie in freebsd. My query is that I want to create > an image from the freebsd sources. And I will be using this image to > boot another x86 machine. Is there any utility that will use the > compiled kernel and build the image? .Please be as descriptive in your > answers as possible. Hi Saurabh, welcome to FreeBSD! :) For a *small* number of machines, I usually update one (and only one) machine's /usr/src and /usr/ports trees with csup (see the Handbook), create /usr/obj with make buildworld && make buildkernel, update the machine and the installed ports. Then, I rsync /usr/src, /usr/ports, /usr/obj and /usr/local to the other machines, and on every machine, I run again 'make installkernel && make installworld' and mergemaster to update them too. This minimizes the load on external servers (I only download stuff once and redistribute it to the other machines). It's not the *best* and it's not the *only* way to do it, but it works for me if the number of machines is small (and if they run the same architecture (all i386 or all amd64)). > Thanks & Regards > > Saurabh Chopra -cpghost. -- Cordula's Web. http://www.cordula.ws/