From owner-freebsd-questions@FreeBSD.ORG Sun Nov 14 03:56:40 2004 Return-Path: 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 B6B6316A4D0 for ; Sun, 14 Nov 2004 03:56:39 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05B2C43D31 for ; Sun, 14 Nov 2004 03:56:38 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a064.otenet.gr [212.205.215.64]) iAE3uVq8001055; Sun, 14 Nov 2004 05:56:32 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id iAE3uJw9034734; Sun, 14 Nov 2004 05:56:19 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id iAE3uB5Q034701; Sun, 14 Nov 2004 05:56:11 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 14 Nov 2004 05:56:11 +0200 From: Giorgos Keramidas To: Gert Cuykens Message-ID: <20041114035611.GA28482@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-questions@freebsd.org Subject: Re: buildkernel before buildworld X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2004 03:56:40 -0000 On 2004-11-14 03:41, Gert Cuykens wrote: > What happens if you first buildkernel before the buildworld ? If you have previously finished a buildworld and haven't updated your source tree in the meantime, nothing too bad. With a /usr/obj tree around from the previous buildworld stage, you can add options to your kernel configuration and run buildkernel, or even: # cd /usr/src/sys/i386/conf # config -g -d /usr/obj/usr/src/sys/CUSTOM CUSTOM # cd /usr/obj/usr/src/sys/CUSTOM # make depend && make all && make install If you have just added a single option to the kernel configuration or have made minor modifications to the kernel source, this will cut down on the build time. A lot. I have used this method while testing kernel modifications and managed to build, boot, and test more than 10 slightly different kernels in less than 3 hours. After an update of the entire source tree though, building a kernel only may end up with a kernel that is not in sync with the userland. Then, a lot of things may break in unexpected ways. See, for example: http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/faq/book.html#NLIST-FAILED If you are not sure things will work without a buildworld, it's wiser to follow the upgrade procedure recommended in /usr/src/UPDATING. - Giorgos