RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1429352 - RFE: Provide command to easily update grub.cfg
Summary: RFE: Provide command to easily update grub.cfg
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: grub2
Version: 7.3
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Peter Jones
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On: 740953
Blocks: 1420851
TreeView+ depends on / blocked
 
Reported: 2017-03-06 08:05 UTC by Steffen Froemer
Modified: 2021-06-10 12:00 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 740953
Environment:
Last Closed: 2018-03-21 19:41:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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