Configuring GRUB with new kernel

Hi Everyone,

I'm running Red Hat 7.2, and I just compiled the new kernel 2.4.18. After finding out that the system is using GRUB instead of LILO (maybe it's a CPanel thing?), I've run into a question. How do I configure GRUB to boot with the new kernel? Here's grub.conf:

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda6
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
        root (hd0,0)
        kernel /vmlinuz-2.4.7-10 ro root=/dev/hda6
        initrd /initrd-2.4.7-10.img
Would it be...

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda6
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18)
        root (hd0,0)
        kernel /vmlinuz-2.4.18 ro root=/dev/hda6
title Red Hat Linux Old (2.4.7-10)
        root (hd0,0)
        kernel /vmlinuz-2.4.7-10 ro root=/dev/hda6
        initrd /initrd-2.4.7-10.img
Or am I totally off? Also, there isn't a initrd file for the new kernel, so I took that line out. Any help is appreciated.

 

 

 

 

Top