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 line is not affected.
    GRUB_DISABLE_RECOVERY="true"
    GRUB_CMDLINE_LINUX="audit=1" <--- This line is valid
    

Environment

  • Red Hat Enterprise Linux7
  • grub2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.