What to do if Linux CentOS broke GRUB2-efi boot loaders
What to do if Linux CentOS broke GRUB2-efi boot loaders
Some users RHEL CentOS 8 and 8 have experienced problems after installing yesterday’s update bootloader GRUB2 Troubleshooting a critical vulnerability. Problems manifest themselves in the inability to boot after installing the updates, including on systems without UEFI Secure Boot.
On some systems (for example, HP ProLiant XL230k Gen1 without UEFI Secure Boot) the problem manifests itself, including on a freshly installed minimal configuration RHEL 8.2. After updating packages and rebooting occurs freezes and doesn’t even show the GRUB menu. Similar problems with downloading marked for RHEL 7 and CentOS 7 as well as for Ubuntu and Debian.
After starting yum update on CentOS when it restarts you can wait for a surprise in the form Kirpichnogo server, which hangs on the splash screen of the BIOS.
On the issue on forumsandbugtracker wrote in July 2020. It seems that the problem affects all systems with UEFI loader and relevant at least for versions CentOS 7.8 and 8.2.
The problem manifests itself at the time reboot the server with the hung splash screen of the BIOS, from which at first do not understand what happens — no errors, no console, grub just hung the bios splash screen.
The decision
If after upgrading the server did not reboot, to not get a brick when it restarts, it is sufficient to roll back the upgrade grub2 packages and their dependencies:
yum downgrade grub2* shim* mokutil
However, if the server was rebooted and the brick still got to restore the boot loader will need a Live CD or flash drive. The sequence of actions to roll back packages to not rusamaza the following:
To boot from a Live CD (version 7 you can take here);
To configure the network;
To mount your root partition to /mnt/sysimage;
To mount the /boot partition to /mnt/sysimage/boot and a /boot/efi in /mnt/sysimage/boot/efi;
After that, the loader will be updated to the old version and the server should boot.
Excluding packages from update
So the next time you update the loader again, not broke, it is necessary to add problematic packages in the exceptions (line exclude=grub2* shim* mokutil) in the configuration file yum /etc/yum.conf.
Problematic versions of the packages for CentOS 7, with them broken UEFI boot loader:
grub2-2.02-0.86.el7.centos.x86_64
shim-x64-15-7.el7_9.x86_64
Source: habr.com and opennet.ru
WARNING! All links in the articles may lead to malicious sites or contain viruses. Follow them at your own risk. Those who purposely visit the article know what they are doing. Do not click on everything thoughtlessly.
58 Views
All information posted has been taken from public sources and is provided for information purposes only and does not constitute an invitation to action. It was created only for educational and entertainment purposes. All information is intended to protect readers from illegal actions. The visitor undertakes all possible losses caused. The author does all actions only on his own equipment and in his own network. Do not repeat anything read in real life. | Also, if you are the rightholder of the material posted on the pages of the portal, please write to us through contact form complaint about the removal of a particular page, as well as read instruction for rightholders of materials. Thank you for understanding.
00vote
Article Rating
Subscribe
Connect with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
DisagreeAgree
Connect with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok