Bug 1336942

Summary: invalid environment block
Product: [Fedora] Fedora Reporter: Fabrício Godoy <skarllot>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: bcl, lkundrak, mads, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-17 21:54:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
GRUB configurations
none
/boot/grub2/grubenv file none

Description Fabrício Godoy 2016-05-17 21:09:48 UTC
Created attachment 1158535 [details]
GRUB configurations

Description of problem:
Wharever I update kernel- or grub-related packages the following error is returned: `grub2-editenv: error: invalid environment block.`.

Version-Release number of selected component (if applicable):
grub2-efi-2.02-0.25.fc23.x86_64
grub2-tools-2.02-0.25.fc23.x86_64
grub2-2.02-0.25.fc23.x86_64
grubby-8.40-2.fc23.x86_64

How reproducible:
$ LANG=C sudo grub2-editenv list
grub2-editenv: error: invalid environment block.

Additional info:
No side effects detected, the system is running as should.

$ efibootmgr
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0002,0005,0004,2003,2001,2002
Boot0000* UEFI Onboard LAN IPv4 (1C-39-47-0D-FE-EE) 
Boot0001* UEFI Onboard LAN IPv6 (1C-39-47-0D-FE-EE) 
Boot0002* Windows Boot Manager
Boot0004* Fedora
Boot0005* Windows Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

Comment 1 Fabrício Godoy 2016-05-17 21:25:08 UTC
Created attachment 1158540 [details]
/boot/grub2/grubenv file

Maybe grubenv file was corrupted.

Comment 2 Brian Lane 2016-05-17 21:54:28 UTC
Your grubenv is clearly corrupt. It should have something like:

# GRUB Environment Block
saved_entry=Fedora (4.4.7-300.fc23.x86_64) 23 (Workstation Edition)