Why does grub menu not show the newly installed kernel in Red Hat Enterprise Linux 6 on UEFI boot based hardware?
Environment
- IBM System x3650 M3 running in UEFI mode
- Red Hat Enterprise Linux 6
Issue
- Why does the
grubmenu not show the newly installed kernel in Red Hat Enterprise Linux 6 onUEFI bootbased hardware? - New kernel does not load or show up within
grubmenu while booting. - Red Hat Enterprise Linux 6: After running
yumupdate/boot/grub/grub.confis updated with newkernelbut during boot,grubmenu doesn't show it.
Resolution
EFISystem Partition should be mounted under/boot/efi- Considering
/dev/sda1is theEFISystem Partition
# mount /dev/sda1 /boot/efi
- Add the following mount to
/etc/fstabso that it persists over a reboot. Find out theUUDof/dev/sda1by runningblkidcommand.
UUID=FE22-XXXX /boot/efi vfat umask=0077,shortname=winnt 0 0
- The file
/etc/grub.confshould point to/boot/efi/EFI/redhat/grub.conf
# rm /etc/grub.conf
# ln -s /boot/efi/EFI/redhat/grub.conf /etc/grub.conf
- Then copy the updated
/boot/grub/grub.confto/boot/efi/EFI/redhat/grub.confand remove the/boot/grub/grub.confand mark it as a link.
# cp -f /boot/grub/grub.conf /boot/efi/EFI/redhat/grub.conf
# rm -rf /boot/grub/grub.conf
# ln -s /boot/efi/EFI/redhat/grub.conf /etc/grub.conf
Root Cause
- In
UEFImode,GRUBreads the/boot/efi/EFI/redhat/grub.confat the boot time. - The file
/etc/grub.confshould be symlinked to/boot/efi/EFI/redhat/grub.conf grubbycheck/etc/grub.confand adds the new kernel entries to the correspondinggrubfile.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
