From owner-freebsd-questions Tue Feb 19 16:36: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id 5EE9F37B427 for ; Tue, 19 Feb 2002 16:35:52 -0800 (PST) Received: (qmail 72712 invoked by uid 100); 20 Feb 2002 00:35:50 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15474.61286.290485.620755@guru.mired.org> Date: Tue, 19 Feb 2002 18:35:50 -0600 To: "Crist J. Clark" Cc: rene@xs4all.nl, questions@FreeBSD.ORG Subject: Re: building multiple ( 2+ or more) kernels for easy switching? In-Reply-To: <20020219161104.G48401@blossom.cjclark.org> References: <48552002@toto.iv> <15474.58551.91350.65768@guru.mired.org> <20020219161104.G48401@blossom.cjclark.org> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) 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 Crist J. Clark types: > On Tue, Feb 19, 2002 at 05:50:15PM -0600, Mike Meyer wrote: > > rene@xs4all.nl types: > > > Hi. I'm running 4.5-STABLE, and would like to know if it's possible to have 2 or > > > more kernel configuration files built (using /usr/src% make buildkernel > > > KERNCONF=file) after one-another, and then installing whichever I need at a > > > certain time using /usr/src% make installkernel KERCONF=file.. > > > > Yup, it's real easy. Just list all the config files on the KERNCONF > > line like so: > > > > KERNCONF=GURU GENERIC > > > > You can list more than two, and you don't have to build GENERIC if you > > don't want to. The first one listed - in this case GURU - will be the > > one installed by "installkernel". > That's the problem with this method. You have to do mess with the > installkernel to keep them from clobbering each other. It's not really much of a problem, because the only one that gets clobbered is the one that's going to boot by default. I.e., you do make kernel and it builds them all and installs your default kernel. You want to install another kernel to boot for a while, you do make installkernel KERNCONF=ALTERNATE and it will install the alternate one, and put the old one in kernel.conf. > I like to just leave, > > KERNCONF?= CUSTOM > > In my make.conf(5), and then do, > > # make kernel > # make kernel KERNCONF=GENERIC INSTKERNNAME=kernel.GENERIC -DNO_MODULES > > This installs the CUSTOM kernel in /kernel (as well as the modules) > and then builds GENERIC and installs it in /kernel.GENERIC (and is > also nice enough to save the old one in /kernel.GENERIC.old). I think we've got different goals here. I want them built, and available to install should I need it. I don't want it available to boot all the time. Actually, I also install GENERIC on my test machine over the net, but that's another issue. I'm not sure which of the two cases is true for rene. Just out of curiosity, have you tried setting "KERNCONF?= CUSTOM GENERIC" along with "MODULES_WITH_WORLD=yes", and then done: # make kernel # make installkernel KERNCONF=GENERIC INSTKERNNAME=kernel.GENERIC to see if it would work? Thanx, http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message