From owner-freebsd-questions Tue Feb 19 16:11:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id ED10F37B400 for ; Tue, 19 Feb 2002 16:11:06 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220001106.SNQL2951.rwcrmhc53.attbi.com@blossom.cjclark.org>; Wed, 20 Feb 2002 00:11:06 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g1K0B5C70091; Tue, 19 Feb 2002 16:11:05 -0800 (PST) (envelope-from cjc) Date: Tue, 19 Feb 2002 16:11:04 -0800 From: "Crist J. Clark" To: Mike Meyer Cc: rene@xs4all.nl, questions@FreeBSD.ORG Subject: Re: building multiple ( 2+ or more) kernels for easy switching? Message-ID: <20020219161104.G48401@blossom.cjclark.org> References: <48552002@toto.iv> <15474.58551.91350.65768@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15474.58551.91350.65768@guru.mired.org>; from mwm-dated-1014594615.8389ca@mired.org on Tue, Feb 19, 2002 at 05:50:15PM -0600 X-URL: http://people.freebsd.org/~cjc/ 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 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. 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). -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message