Ask Your Question

grub2 - a question

asked 2012-09-17 09:07:50 +0000

Pascal76 gravatar image

I am using Fedora 17 since a few months, already have some experience with linux OS for several years.

In Grub2 I have seen there are only two entries in the main menu by default.

Someone gave me the hint to remove the submenu entry in /boot/grub2/grub.cfg

But: If I e.g. want to update the configuration with this command:

grub2-mkconfig -o /boot/grub2/grub.cfg

the submenu appears again.

How can I edit the config files - and which config file is it - to have all menu entries on one level for selection - that it is correctly recognized by the grub config functionality?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-09-17 11:15:07 +0000

hakre gravatar image

updated 2012-09-17 11:16:07 +0000

grub2-mkconfig generates grub.cfg files suitable for most cases, e.g. when upgrading a distribution, and will discover available kernels and attempt to generate menu entries for them.

So it does have some limitations. Instead you might want to edit it by hand or see if some if it's features work for your case. I find the manual helpful, it can be viewed with the info tool, a related section is:

$ info grub2 Configuration Simple\ configuration

I hope this is helpful. The config file btw. is the one you have specified:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.


Asked: 2012-09-17 09:07:50 +0000

Seen: 708 times

Last updated: Sep 17 '12