On Mon, 17 Jun 2013 09:21:21 -0500, Adam Vande More wrote:
> On Mon, Jun 17, 2013 at 7:13 AM, Anton Shterenlikht <me...@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, ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to