I have set the menu to be hidden and if called up enabled the GFX mode.
Whenever I start the computer, I get the error:
error: …/…/grub-core/fs/fshelp.c:257:file `/EFI/fedora/grubenv’ not found.
This does not hamper anything, but I feel this is not necessary and tells me that something is not quite right. While the exact message may have slightly changed over the time (e.g. the given line number), I think I got this since Fedora 28 or something. So, I would like to finally get it fixed.
My “/etc/default/grub” looks like this (omitting any commented-out lines):
Thanks! However, unfortunately this did not do anything to the error message.
When I run all four commands in order, only two produce any output. These are:
sudo dnf -y reinstall grub2-common
Last metadata expiration check: 0:49:27 ago on Wed 23 Jun 2021 04:20:25 PM CEST.
Installed package grub2-common-1:2.06~rc1-4.fc34.noarch (from updates) not available.
Error: No packages marked for reinstall.
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file …
Adding boot menu entry for UEFI Firmware Settings …
done
When I run sudo dnf list grub2-common, I get:
Last metadata expiration check: 0:52:43 ago on Wed 23 Jun 2021 04:20:25 PM CEST.
Installed Packages
grub2-common.noarch 1:2.06~rc1-4.fc34 @updates
Available Packages
grub2-common.noarch 1:2.06-2.fc34 updates
While I was not aware that I had a release candidate installed before running this command, this is likely not tied to the issue due to the long history of this error message.
Also of note:
Many cases when Fedora gets updated, I fresh-install instead of upgrading it, to make sure I do not carry over anything from the previous versions. All I keep is my data partition holding my user and other non-system-related information.
After the installation, I then run a script to adjust the settings I always want to have, including GRUB. Considering GRUB, all this script does is really just the above, commenting out any lines it replaces (so I have some lines starting with #, e.g. #GRUB_TIMEOUT=5).