Date: Tue, 19 Feb 2002 16:11:04 -0800 From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: Mike Meyer <mwm-dated-1014594615.8389ca@mired.org> 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> 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 References: <48552002@toto.iv> <15474.58551.91350.65768@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020219161104.G48401>