Display only one kernel entry in grub-pc (lucid)
Tom H
tomh0665 at gmail.com
Wed May 19 13:08:26 UTC 2010
2010/5/19 Markus Schönhaber <ubuntu-users at list-post.mks-mail.de>:
> 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 only way is to edit 10_linux - and to re-edit it after a grub-pc
upgrade that brings in 10_linux (or possibly all grub-pc upgrades if
they all do so) because your changes will not be saved.
There is a post by a DD on the link's page where he says that Debian
has this variable but I am running sid and it most certainly does not.
There is also this Debian bug report
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548600
where the same DD suggests that this is an upstream, grub developer
issue. But grub1's "howmany" was a Debian "enhancement" that I have
never seen, for example, in the RHEL/Fedora/CentOS universe, so...
More information about the ubuntu-users
mailing list