Re: Question on installing 2.6.18

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Greetings, Jerry.

On 7 ??????? 2006 ?., 16:54:25 you wrote:

>>>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
By default kernel RPMs in CentOS use grubby commandline tool to
'install' a new kernel, including building initrd and changing
configs. You may give it a try. It's behavior is to add new kernel as
a first entry in grub.conf. If yout default is set to 0 - you'll
result in default boot automatically set to a new kernel.

-- 
Best regards,
 Alexey Loukianov                          mailto:aloukianov@xxxxxxxxxx
 System Engineer,
 IT Department,
 Lavtech Corp

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux