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

Markus Schönhaber ubuntu-users at list-post.mks-mail.de
Wed May 19 10:15:55 UTC 2010


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.

-- 
Regards
  mks




More information about the ubuntu-users mailing list