RHEL is unable to boot due to lack of $kernelopts in /boot/grub2/grubenv
Issue
- RHEL is unable to boot due to lack of kernelopts variable in /boot/grub2/grubenv or lack of /boot/grub2/grubenv file.
- For UEFI, file path is /boot/efi/EFI/redhat/grubenv.
- On RHEL 8.1 and 8.2, grub.cfg has a fallback default_kernelopts variable , what is this used for?
set default_kernelopts="root=/dev/mapper/rhel_efi8-root ro resume=/dev/mapper/rhel_efi8-swap rd.lvm.lv=rhel_efi8/root rd.lvm.lv=rhel_efi8/swap "
Environment
- Red Hat Enterprise Linux 8.0
- Red Hat Enterprise Linux 8.1
- Red Hat Enterprise Linux 8.2
- grub2-common-2.02-87.el8_2 and earlier
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.