Created attachment 968035 [details] /etc/default/grub Description of problem: After using FedUp to upgrade from Fedora 20 to 21 the following error comes on every boot. The error "File '/grub2/grubenv' not found" comes on selecting any boot option in grub menu. I have to press any key to proceed. Since grubenv is not found, the default also is not saved so the first option remains default. I have few changes in /etc/default/grub but they were work since months on fedora 20 Version-Release number of selected component (if applicable): Fedora 21 grub2 2.02-013.fc21 grub2-efi 2.02-013.fc21 How reproducible: On every boot Steps to Reproduce: 1. 2. 3. Actual results: Error on selecting any option or letting default get selected on timeout Expected results: No error should come Additional info:
I have exactly the same problem
I had same problem. I will describe my case: Home PC with dual boot (Fedora + W7) I am using grub options GRUB_DEFAULT=saved, GRUB_SAVEDEFAULT=true I got separated small primary partition (/dev/sda1) for /boot and separated big extended partition (/dev/sda5) for / My /boot/grub2/grubenv was symlink pointing to /boot/efi/EFI/fedora/grubenv . And that was the problem. There is not /boot/efi/EFI/fedora/grubenv in the moment of booting, because /dev/sda1 is not mounted to its mountpoint /boot . I have changed symlink /boot/grub2/grubenv to point to ../efi/EFI/fedora/grubenv and this solved the problem for me.
(In reply to Martin Swiech from comment #2) > I had same problem. I will describe my case: > Home PC with dual boot (Fedora + W7) > I am using grub options GRUB_DEFAULT=saved, GRUB_SAVEDEFAULT=true > I got separated small primary partition (/dev/sda1) for /boot and separated > big extended partition (/dev/sda5) for / > > My /boot/grub2/grubenv was symlink pointing to /boot/efi/EFI/fedora/grubenv > . And that was the problem. There is not /boot/efi/EFI/fedora/grubenv in the > moment of booting, because /dev/sda1 is not mounted to its mountpoint /boot . > > I have changed symlink /boot/grub2/grubenv to point to > ../efi/EFI/fedora/grubenv and this solved the problem for me. Awesome... Works for me too.
I have same problem. I added line "GRUB_SAVEDEFAULT=true" to /etc/default/grub. In fedora 20 it's works fine. Method of Martin Swiech don't tested. Anyway, need to change grub2 package.
Same Problem but without uefi boot Also after the upgrade the entry for windows is called Windows Vista and not Windows 7 like it was before (and in fact it is win7).
I second that: >> I have same problem. I added line "GRUB_SAVEDEFAULT=true" to /etc/default/grub. In fedora 20 it's works fine.
(In reply to chris from comment #5) > Also after the upgrade the entry for windows is called Windows Vista and not > Windows 7 like it was before (and in fact it is win7). This is bug of os-prober package i think.
(In reply to Martin Swiech from comment #2) > I have changed symlink /boot/grub2/grubenv to point to > ../efi/EFI/fedora/grubenv and this solved the problem for me. Thanks!
Just experienced this myself. I can confirm that fix from comment 2 works.
Yeah, I had the same problem. It only occurs if grub2-efi is also installed (as you lised). Can I ask why we aren't using a hard link here? They have to be on the same partition, and it is really simpler for any filesystem code to parse.
Confirmed this bug was triggered by adding GRUB_SAVEDEFAULT=true in /etc/default/grub Comment #2 seems to solve the issue.
hi, my problem is this: i followed the steps outlined here but the new symlink remains broken in my case, because I have no ../efi/EFI/fedora/grubenv file what i am doing wrong?? (total noob here)
Created attachment 1008050 [details] Patch for grub2.spec Here is a patch for grub2.spec, that solves the problem. Maintainer, please could you apply the patch and rebuild the package?
Created attachment 1008051 [details] Script to correct the symlink /boot/grub2/grubenv on already installed F21 hosts Here is a script for manually correcting the symbolic link /boot/grub2/grubenv on already installed Fedora 21 hosts.
same problem on F22, with grub options GRUB_DEFAULT=saved, GRUB_SAVEDEFAULT=true correcting the symlink to ../efi/EFI/fedora/grubenv fixes it.
This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
same problem on F23. Comment #2 (and #15) resolves the issue. Notes: freshly installed F23 without (u)efi (using the bios boot)
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
Fedora 23 still has the identical problem. Please reopen and fix it! The fix is so simple... see comment #13. lrwxrwxrwx. 1 root root 28 5. Sep 23:15 /boot/grub2/grubenv -> /boot/efi/EFI/fedora/grubenv grub2-2.02-0.23.fc23.x86_64 grub2-efi-2.02-0.23.fc23.x86_64
Still confirmed in F23 please reopen
Still happening in F23 fresh install
It was fixed until today. dnf upgrade in f23 regressed to this bug.
Please reopen! I can confirm that this happens in F23 after dnf upgrade. The attached patch in #13 works.
A new bug report has been opened F23 at https://bugzilla.redhat.com/show_bug.cgi?id=1335533 perhaps these should be merged making sure that the result is left open.