Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2002 17:50:15 -0600
From:      "Mike Meyer" <mwm-dated-1014594615.8389ca@mired.org>
To:        rene@xs4all.nl
Cc:        questions@freebsd.org
Subject:   Re: building multiple ( 2+ or more) kernels for easy switching?
Message-ID:  <15474.58551.91350.65768@guru.mired.org>
In-Reply-To: <48552002@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
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".

You probably want to set

MODULES_WITH_WORLD=true

as well, otherwise it will build the modules when it builds each
kernel, which is probably a waste of time. This also means that you
don't install modules until you do the installworld, which can cause
interesting problems.

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15474.58551.91350.65768>