From owner-freebsd-questions@FreeBSD.ORG Sat Nov 26 12:24:24 2011 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 4ECDF1065782 for ; Sat, 26 Nov 2011 12:24:24 +0000 (UTC) (envelope-from mueller6727@bellsouth.net) Received: from fmailhost06.isp.att.net (fmailhost06.isp.att.net [204.127.217.106]) by mx1.freebsd.org (Postfix) with ESMTP id 3D0CC8FC0A for ; Sat, 26 Nov 2011 12:24:24 +0000 (UTC) Date: Sat, 26 Nov 2011 12:24:23 +0000 (GMT) X-Comment: Sending client does not conform to RFC822 minimum requirements X-Comment: Date has been added by Maillennium Received: from localhost (adsl-68-210-130-165.sdf.bellsouth.net[68.210.130.165]) by isp.att.net (frfwmhc06) with SMTP id <20111126122422H0600a7jjke>; Sat, 26 Nov 2011 12:24:23 +0000 X-Originating-IP: [68.210.130.165] From: "Thomas Mueller" To: freebsd-questions@FreeBSD.org References: Message-Id: <20111126122424.4ECDF1065782@hub.freebsd.org> Cc: "b. f." Subject: Re: Quick build of stripped-down kernel 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: Sat, 26 Nov 2011 12:24:24 -0000 from "b. f." : > If the kernel versions were compatible, and the set of modules were > the same, I suppose you could set MODULES_WITH_WORLD and > KODIR=/boot/modules during buildworld and installworld, to build the > modules as part of buildworld and install them in /boot/modules during > installworld, rather than in /boot/kernel or /boot/kernel2. Then you > could build and install both of your kernels with NO_MODULES, as > previously discussed, and with your different choices of KODIR for > each kernel. Because /boot/modules is part of the default module_path > defined in /boot/defaults/loader.conf, the modules ought to load as > usual for either kernel. If you wanted to place them in a different > directory, you could alter KODIR during buildworld and installworld, > and add the directory to module_path in /boot/loader.conf. I haven't > tested this, but I think that it will work, and I'd be interested to > hear whether it does. There are of course alternative methods. > b. That should be helpful; I could do that when FreeBSD 9.0-RC3 comes out. I would only use the single set of modules when kernels are built from the same source tree; otherwise there could be incompatibility. I might also want to build FreeBSD 9.0-RELEASE, when that comes out, for i386, on a 16 GB USB stick, and run on new computer and older 32-bit computer. Older computer USB is not directly bootable, but USB can be booted using PLOP boot manager (http://www.plop.at/). Tom