-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest GRUB update breaks booting #148
Comments
Hello! |
Nevermind, reproduced it, we are going to pull out this update and issue a proper one shortly. |
Thank you. |
@robertm98 once again thank you very much! I see that it is not related to filesystems, just broken grub config. |
same issue here, is there any way to fix broken grub / grub.cfg from within UEFI interactive shell? |
The only way I think this could be repaired is to do a recovery boot from the installation media. chroot to /mnt/sysroot (I think) then possibly use dnf to do a roll back or edit the config. |
@robertm98 @m45733r i will provide recovery instructions from UEFI shell shortly. |
if you see EFI dir, you are where you need to be
you will be dropped to grub cmdline
Now you need to check boot info for you kernel
Now still in grub cmdline run:
where kernel = kernel form config When system is booted run: |
@robertm98 the problem is that on OL9, config file for grub2 was switched to parent config in /boot/efi/EFI/redhat/grub.cfg that in order loads proper /boot/grub2/grub.cfg config. For CERTAIN /boot/efi/EFI/redhat/grub.cfg config contents fix that was applied for leapp in-place upgrade instead of correctly updating configs ( or not touching them ), writes /boot/efi/EFI/redhat/grub.cfg into /boot/grub2/grub.cfg and system chainloops. |
Thanks for the instructions, some remarks from my expierence: boot was successful, but after login + grub2-mkconfig + reboot it would return to grub cmdline again :/ |
yeah, you need slash in the end to display content:
OH! yes, that is because /boot/efi/EFI/redhat/grub.cfg was removed from UEFI shell during recovery. |
Thank you. |
Im not sure if that is related to the original issue but the only thing that is a bit weird now is that grubby shows:
And yet, when I reboot it would automatically select index 0 with a kernel that is no longer present in /boot.
Any help appreciated. |
can you show please
|
Sure, here you go:
/boot/efi/EFI/redhat/grub.cfg
/boot/grub2/grub.cfg
|
OK, everything above looks correct. It seems you have some redundant entries there. |
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... |
For everyone tracking this issue: version is 2.06-80.0.3.el9_4 |
This is a different bug compared to what is described in #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.
The text was updated successfully, but these errors were encountered: