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
Feizhou,
Thanks for the reply.... What you suggest is what I am doing now. Editing grub.conf by hand.
I was hoping there was a command line method that would automatically do this editing for me
when I do the "make install" and set the default=X to my new kernel I just built.
Is there anything like that? Thanks,
Jerry
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos