LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Having 2 Kernels - Same Version? (https://www.linuxquestions.org/questions/linux-general-1/having-2-kernels-same-version-409641/)

LordOfer 01-30-2006 10:57 AM

Having 2 Kernels - Same Version?
 
Hi all,
I just compiled me a 2.6.11.6 kernel. Now I want to change the configuration and compile another 2.6.11.6 kernel, but with the old one still listed on grub menu.

How can I accomplish that without stepping on the old 2.6.11.6 directory in /lib/modules?

If I just change the version name in /incluse/version.h under the source directory, will it work?

thanks!

bigrigdriver 01-30-2006 03:40 PM

I haven't done a kernel compile in so long! But, if I was to try it, I'd use a utility called 'buildkernel'. You configure the control script to do what you want to do. There is an option called EXTRAVERSION= which you can edit before building a new kernel.

I assume you want a new kernel because you want to:
a- reduce the bloat of a default kernel.
or
b- want to take advantage of features of your computer hardware, or some such, by compiling a custom kernel.

What buildkernel does, when you invoke the EXTRAKERNEL= is build the new kernel and a new /lib/modules for the new kernel (in parallel with the original), without touching the original. That way, you get to test the new kernel until you are satisfied before deleting the old, and you still have the old to boot into if the new doesn't work.

LordOfer 01-31-2006 05:51 AM

thanks!
will do


All times are GMT -5. The time now is 05:43 PM.