John Dangler wrote:
I changed some options to the menuconfig (trying to get that splash to
work), and saved the changes to an alternate config file.
I'd like to make a kernel with _that_ config file and keep it separate from
my default 2.6-r12 kernel, since, when the splash causes the panic, I have
some way to get back in.
How do I compile a new kernel that I can add to the grub.conf with the
alternate config ?
The kernel config file used for compiling the kernel is called .config
So, to compile a kernel with that config file, just replace the .config
with your alternate file, saving the old .config of course if you want
to keep it:
mv .config my-old-config
mv my-new-config .config
(do this in the kernel source dir)
You might have to call 'make clean' before you compile your new
kernel, i'm not 100% sure on that -- it won't harm though.
You can add as many kernels to your grub config as you like -- you might
want to check with the install guide how to do that exactly:
http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=10
Basically, your second kernel gets the same kind of entry just as your
first, but you will want to change the title and of course the kernel
(the root line should be the same as in the first block). Move your
kernel under the name you specified to the same location where your
other kernel is, using the name you specified in the config. (you will
probably have to mount your /boot partition to do all this naturally)
I.e. add an extra block something like this to your grub.conf:
title=Gentoo Linux 2.6.11-r11
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r11
Marco
--
gentoo-user@gentoo.org mailing list