Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

grub2 - how to get rid of submenu entries

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Cazzantonio
Bodhisattva
Bodhisattva
User avatar
Posts: 4514
Joined: Sat Mar 20, 2004 8:57 pm
Location: Somewere around the world

grub2 - how to get rid of submenu entries

  • Quote

Post by Cazzantonio » Thu Jul 12, 2012 5:59 pm

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
Top
Cazzantonio
Bodhisattva
Bodhisattva
User avatar
Posts: 4514
Joined: Sat Mar 20, 2004 8:57 pm
Location: Somewere around the world

  • Quote

Post by Cazzantonio » Thu Jul 12, 2012 8:34 pm

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
Top
lexming
Tux's lil' helper
Tux's lil' helper
Posts: 123
Joined: Thu Jan 04, 2007 3:26 pm
Location: Barcelona

  • Quote

Post by lexming » Fri Jul 13, 2012 12:39 pm

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.
Top
Cazzantonio
Bodhisattva
Bodhisattva
User avatar
Posts: 4514
Joined: Sat Mar 20, 2004 8:57 pm
Location: Somewere around the world

  • Quote

Post by Cazzantonio » Fri Jul 13, 2012 7:33 pm

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
Top
stevia
n00b
n00b
Posts: 9
Joined: Sat Jun 09, 2007 10:19 am

  • Quote

Post by stevia » Mon Aug 20, 2012 4:30 am

For completeness, elegancy and to get rid of the very first entry named

Code: Select all

menuentry 'Gentoo GNU/Linux'
which is the one showing up above the (previous) submenu entry you can comment lines 229 to 240.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic