View previous topic :: View next topic |
Author |
Message |
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Thu Jul 12, 2012 5:59 pm Post subject: grub2 - how to get rid of submenu entries |
|
|
Hi all. I recently started testing grub-2.00 and I would like to know how to remove those submenu entries that get pulled in by grub2-mkconfig. At least without having to manually and carefully edit files in /etc/grub.d. Those files are a bit messy for my tastes, and I would like to keep away from them.
Another nice option would be the possibility to set the title of menuentries, in order to get rid of those GNU\Linux strings that I personally detest...
As now the only way to customize grub.cfg (also to add password checks) is to manually write it from scratch, which isn't a big improvement over old grub...
Thanks _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Thu Jul 12, 2012 8:34 pm Post subject: |
|
|
For now I simply commented line 239, 242, 243 and 253 to 257 in /etc/grub.d/10_linux, however I hope that developers will ad some configuration option in /etc/default/grub to do this automatically _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
|
lexming Tux's lil' helper
Joined: 04 Jan 2007 Posts: 123 Location: Barcelona
|
Posted: Fri Jul 13, 2012 12:39 pm Post subject: |
|
|
You are right, ultimately I had to do the same thing. There's no way to disable the generation of those submenu entries. In my case, I want to have just one item in the grub menu to be able to boot instantaneously without any grub screen appearing in between. |
|
Back to top |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Fri Jul 13, 2012 7:33 pm Post subject: |
|
|
I think those scripts are an early release and will get reworked in the future.
/etc/grub.d/30_os-prober has a menuentry for hurd... is there any gentoo support for hurd at all? _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
|
stevia n00b
Joined: 09 Jun 2007 Posts: 9
|
Posted: Mon Aug 20, 2012 4:30 am Post subject: |
|
|
For completeness, elegancy and to get rid of the very first entry named Code: | menuentry 'Gentoo GNU/Linux' | which is the one showing up above the (previous) submenu entry you can comment lines 229 to 240. |
|
Back to top |
|
|
|