Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2013 01:13:09 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Adam Vande More <amvandemore@gmail.com>
Cc:        Anton Shterenlikht <mexas@bristol.ac.uk>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: installing a kernel under a custom location, not /boot/kernel?
Message-ID:  <20130618011309.395bd882.freebsd@edvax.de>
In-Reply-To: <CA+tpaK199_s_sMpS-iBOdMA3uSVP0p_6hOcs5A13JPRuYYJdfA@mail.gmail.com>
References:  <201306171213.r5HCD0OU012253@mech-cluster241.men.bris.ac.uk> <CA+tpaK199_s_sMpS-iBOdMA3uSVP0p_6hOcs5A13JPRuYYJdfA@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, 17 Jun 2013 09:21:21 -0500, Adam Vande More wrote:
> On Mon, Jun 17, 2013 at 7:13 AM, Anton Shterenlikht <mexas@bris.ac.uk>wrote:
> 
> > I think there is an option for this.
> > But I cannot find it under
> > 9.5. Building and Installing a Custom Kernel
> > http://www.freebsd.org/doc/handbook/kernelconfig-building.html
> >
> > I need to keep several kernels installed, not
> > just the current and the previous. How to achive this?
> >
> 
> KODIR=/boot/testkernel

This parameter can be used to the "make installkernel" command,
for example in a workflow like this:

	# make buildkernel KERNCONF=TESTKERNEL
	# make installkernel KERNCONF=TESTKERNEL KODIR=/boot/testkernel

Plus the corresponding settings in /boot/loader.conf:

	kernel="testkernel"
	bootfile="/boot/testkernel/kernel"
	kernel_options="foo bar blah"

See /boot/defaults/loader.conf for details.

For booting test kernels, you might also find the nextboot command
very helpful; read "man nextboot" for more inspiration.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20130618011309.395bd882.freebsd>