Display only one kernel entry in grub-pc (lucid)

Karl Larsen klarsen1 at gmail.com
Wed May 19 12:54:24 UTC 2010


On 05/19/2010 04:15 AM, Markus Schönhaber wrote:
> 19.05.2010 10:47, Nicolas Michel:
>
>    
>> For a end-user, I want to setup grub-pc on Ubuntu Lucid to display only
>> one kernel entry. So if an update install a new kernel version it will
>> be transparent for him.
>> With grub-legacy there was the "howmany" option.
>> With grub-pc I found a french article (on ubuntu.fr) which talk about
>> modifying the variable NBLISTMAX in the grub script 10_linux. But that
>> tip was probably written for Karmic because the same script in Lucid
>> don't seem to use that variable anymore.
>>
>> ->  I found nothing in english about this need.
>>
>> Someone know how to do it?
>>      
> Skimming over /etc/grub.d/10-linux I see no mechanism that would limit
> the number of kernels for which menu entries are created. And indeed
> https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/492995
> suggests there is none. But this bug report has a patch attached which
> implements such a feature.
> If it's really that important to you that only one kernel is shown in
> GRUB's menu, you could apply the patch. Ugly, but a possible solution.
>
>    
         The fact is there is NO way to limit how many kernel versions 
are displayed in grub. All you can do is use is the Synaptic Package 
Manager and use that to delete the kernels you do not want. :-)

     It is up to to decide how many to keep. I like 2 or 3 myself :-D

73 Karl




-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
         Key ID = 3951B48D






More information about the ubuntu-users mailing list