oracle-linux: Latest GRUB update breaks booting
This is a different bug compared to what is described in https://github.com/oracle/oracle-linux/issues/147
When the latest updates are applied and a server is then rebooted GRUB will not start and appears to be stuck in a busy loop displaying the following message. “error: …/…/grub-core/commands/efi/tpm.c:150:unknown TPM error”
Secure Boot is disabled and no previous problems.
Steps to reproduce:
Download and install OL 9.4 x86_64 OK for first boot. Apply updates Reboot and GRUB will then fail to load with the above error message.
As a cross check a fresh install was done and grub updates were excluded with
exclude=grub*
in the /etc/dnf/dnf.conf file.
The non-grub updates were installed and the server rebooted OK.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 25 (1 by maintainers)
You should not need to regenerate grub config after grub update. On legacy ( BIOS/non-UEFI ) systems it is mandatory to rerun grub2-install after grub2 updates. This is needed so that code in core.img matches actual modules. NOT rerunning grub2-install might be fine for a while, if code is not changing much, but from time to time you might faces issues, like you did.
oh, heres the problem - sorry for bothering you - but thanks for pointing me in the right direction. looks like (some script or person) regenerated the machine-id a few weeks ago…
@robertm98 @m45733r i will provide recovery instructions from UEFI shell shortly.