installing a kernel under a custom location, not /boot/kernel?
Polytropon
freebsd at edvax.de
Mon Jun 17 23:20:21 UTC 2013
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 at 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, ...
More information about the freebsd-questions
mailing list