[CentOS] Question on installing 2.6.18

Thu Dec 7 03:10:29 UTC 2006
Feizhou <feizhou at graffiti.net>

Jerry Geis wrote:
> Hi,
> 
> I have a need to install 2.6.18 kernel.
> 
> After I configure, make, make modules, make install (all that is good).
> The last thing I do is 'make install'. This also modifies grub.conf and
> adds an entry for my new kernel. However it leaves the old kernel as still
> the default. Is there a way to have it automatically set my new kernel
> as the default in grub.conf so when I reboot the new kernel is active.
> 

Edit grub.conf

Set default=x where x is the menu order position of 2.6.18. The order 
starts from 0.

eg:
default=0
title CentOS (2.6.18)
	kernel (hd0,1)/vmlinuz-2.6.18 ro root=/dev/VolGroup00/LogVol00
	initrd (hd0,1)/initrd-2.6.18.img
title CentOS (2.6.9-42.0.3.plus.c4)
         root (hd0,1)
         kernel /vmlinuz-2.6.9-42.0.3.plus.c4 ro 
root=/dev/VolGroup00/LogVol00
         initrd /initrd-2.6.9-42.0.3.plus.c4.img
title CentOS (2.6.9-42.0.3.EL)
         root (hd0,1)
         kernel /vmlinuz-2.6.9-42.0.3.EL ro root=/dev/VolGroup00/LogVol00
         initrd /initrd-2.6.9-42.0.3.EL.img
title CentOS-4 x86_64 (2.6.9-42.EL)
         root (hd0,1)
         kernel /vmlinuz-2.6.9-42.EL ro root=/dev/VolGroup00/LogVol00
         initrd /initrd-2.6.9-42.EL.im