Ask Your Question

grub2 - a question

asked 2012-09-17 04:07:50 -0500

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 06:15:07 -0500

hakre gravatar image

updated 2012-09-17 06:16:07 -0500

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

Question Tools


Asked: 2012-09-17 04:07:50 -0500

Seen: 835 times

Last updated: Sep 17 '12