RHEL7 grub2-mkconfig breaks order of kernel menu entries
Issue
-
Running
grub2-mkconfigbreaks the expected boot order of kernels -- the latest kernel is no longer in position 0. -
grub2-mkconfigcommand is not appending proper kernel menu entries in/boot/grub2/grub.cfgfile. It is causing system to boot with older kernel. -
Install latest (or multiple) kernel on RHEL7 and run
grub2-mkconfig -o /boot/grub2/grub.cfgcommand. It is not sorting entries from latest kernel to older one. To Verify:grub2-mkconfig | grep ^menuentry
Environment
- Red Hat Enterprise Linux 7
- grub2 less than or equal to version
grub2-2.02-0.16.el7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
