Bug 1429352

Summary: RFE: Provide command to easily update grub.cfg
Product: Red Hat Enterprise Linux 7 Reporter: Steffen Froemer <sfroemer>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: low Docs Contact:
Priority: low    
Version: 7.3CC: collura, cristian.ciupitu, cww, extras-qa, flokip, jofernan, mads, marcosfrm, pjones, robatino
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 740953 Environment:
Last Closed: 2018-03-21 19:41:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 740953    
Bug Blocks: 1420851    

Description Steffen Froemer 2017-03-06 08:05:48 UTC
+++ This bug was initially created as a clone of Bug #740953 +++

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):
grub2-1.99-6.fc16.i686

--- Additional comment from Mads Kiilerich on 2011-10-24 11:57:42 EDT ---



--- Additional comment from Mads Kiilerich on 2011-10-24 19:15:39 EDT ---



--- Additional comment from Kamil Páral on 2011-10-27 07:06:07 EDT ---

For reference purposes - the current "workaround" is to run:

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