Bug 1336942 - invalid environment block
Summary: invalid environment block
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 23
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-17 21:09 UTC by Fabrício Godoy
Modified: 2016-05-17 21:54 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-17 21:54:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
GRUB configurations (11.62 KB, application/x-gzip)
2016-05-17 21:09 UTC, Fabrício Godoy
no flags Details
/boot/grub2/grubenv file (1.00 KB, application/octet-stream)
2016-05-17 21:25 UTC, Fabrício Godoy
no flags Details

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)


Note You need to log in before you can comment on or make changes to this bug.