Since the recent grub issue has impacted a lot of people, we wanted to provide full transparency based on the information we have so far. The situation with this package is still evolving and we will update this post with more information as it becomes available.
The issue
After updating to grub 2.06.r322 many users reported that their machines could fail to boot or booted directly into the BIOS or another OS.
What caused the issue
Starting with this commit, grub introduced a call to fwsetup --is-supported
in /etc/grub.d/30_uefi-firmware
. If the version of grub you have installed via the grub-install
command didn’t support that command, it caused grub to fail.
How come not everyone was impacted
Prior to the most recent version, grub only registered the fwsetup
if detected support. If your machine detected support, you would have had the fwsetup
command registered and the failure wouldn’t occur.
I have already updated and my machine is broken, what should I do?
Follow the instructions in this post to chroot into your system and run grub-install
to install the latest version.
I haven’t updated yet, is there anything I should do
Follow the instructions in this post that relate to that scenario. Basically, run grub-install
after upgrading but before rebooting.
What happens next with the grub package
According to the bug report, Arch will produce a version of the package without that commit while working with grub upstream to determine next steps
Arch decided to release a new version which was functionally the same but which includes a post install message to run grub-install
and grub-mkconfig
What about new installs?
For online installs, this issue won’t impact new online installs since grub-install
gets run as part of the bootloader getting installed and online installs always have the newest available packages.
For offline installs, a rebuilt Neo ISO is being released which will have the updated grub package.
Why wasn’t this caught in testing
We can’t answer this question absolutely but there are at least two factors to consider:
- Not all grub users were impacted by this issue
- Many Arch users don’t run grub
- Only UEFI installs were impacted
What should we do differently in the future to avoid this type of problem with grub
We are exploring all options here but the reality is that this has never happened before. Blindly running grub-install
every time would be knee-jerk reaction and probably create more problems than it would solve.
We were already considering moving away from grub by default and that may happen at some point in the future.
We are also investigating the possibility of an overlay repo which would give us more control over packages coming from Arch. Currently, we have no ability to influence packages which come from Arch.
First we will wait to see what Arch decides to do moving forward and then we will make a long-term decision.