Why does grub2-mkconfig command not reflect configuration change in /etc/default/grub?

Solution Verified - Updated -

Issue

  • Why does grub2-mkconfig command not reflect configuration change in /etc/default/grub?
  • There are multiple same parameters in /etc/default/grub. The latest parameter is only affected.

    $ /cat etc/default/grub 
    GRUB_TIMEOUT=5
    GRUB_DEFAULT=1
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="crashkernel=512M"  <--- This option is not present on boot line
    GRUB_DISABLE_RECOVERY="true"
    GRUB_CMDLINE_LINUX="audit=1"           <--- This option is only one present at boot time
    

Environment

  • Red Hat Enterprise Linux 7
  • grub2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content