Bug 740953 - RFE: Provide command to easily update grub.cfg
Summary: RFE: Provide command to easily update grub.cfg
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
: 739691 745185 (view as bug list)
Depends On:
Blocks: 1429352
TreeView+ depends on / blocked
Reported: 2011-09-23 21:18 UTC by Kamil Páral
Modified: 2017-03-06 08:05 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
: 1429352 (view as bug list)
Last Closed:
Type: ---

Attachments (Terms of Use)

Description Kamil Páral 2011-09-23 21:18:26 UTC
Description of problem:
When I do some adjustments to /etc/default/grub, there are no instructions how to re-generate the main configuration file /boot/grub2/grub.cfg. In the latter file, there is a note about grub2-mkconfig. grub2-mkconfig by default spits the output of stdout, and you have to redirect the output to the correct file manually.

I would like to see an easier process. In Ubuntu they have an 'update-grub' command, that takes care of everything needed (generates the config and writes it to correct location). I would like to propose to take the same approach in Fedora.

My suggestions:
1. Provide 'update-grub' command that performs everything needed (it seems that calling grub2-mkconfig with correct output redirection is sufficient). Take it from Ubuntu if it is not in upstream.
2. Document in both /etc/default/grub that simple execution of 'update-grub' command will re-generate the grub config file.

Version-Release number of selected component (if applicable):

Comment 1 Mads Kiilerich 2011-10-24 15:57:42 UTC
*** Bug 745185 has been marked as a duplicate of this bug. ***

Comment 2 Mads Kiilerich 2011-10-24 23:15:39 UTC
*** Bug 739691 has been marked as a duplicate of this bug. ***

Comment 3 Kamil Páral 2011-10-27 11:06:07 UTC
For reference purposes - the current "workaround" is to run:

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

Note You need to log in before you can comment on or make changes to this bug.