Bug 1948731

Summary: grub2 2.06rc1 "installs" with error - will not boot
Product: [Fedora] Fedora Reporter: Guido <rds1944>
Component: grub2Assignee: Javier Martinez Canillas <fmartine>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: fmartine, lkundrak, pgnet.dev, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-22 15:59:14 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:

Description Guido 2021-04-12 20:25:38 UTC
Description of problem:

Upgrade grub2 "installs" (puts expected files in proper locations), but I get this error:

"/usr/sbin/grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot."

I tried various settings in BIOS. It only boots UEFI, Secure Boot on/off is irrelevant.

Downgrade to 2.04 & all is restored.

RPMs used: grub2-common grub2-efi-x64-* grub2-tools-*

Version-Release number of selected component (if applicable):

2.06~rc1

How reproducible:

Every attempt

Actual results:

grub2-install says

"/usr/sbin/grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot."

Expected results:

An installation with no errors that boots

Additional info:

Lenovo X390 running F33.

Please resolve before releasing F34!

Comment 1 Javier Martinez Canillas 2021-04-12 21:40:17 UTC
(In reply to Guido from comment #0)
> Description of problem:
> 
> Upgrade grub2 "installs" (puts expected files in proper locations), but I
> get this error:
> 
> "/usr/sbin/grub2-install: error: this utility cannot be used for EFI
> platforms because it does not support UEFI Secure Boot."
>
> I tried various settings in BIOS. It only boots UEFI, Secure Boot on/off is
> irrelevant.
>

You shouldn't use grub2-install on EFI installs, the grub2-efi-x64 package
installs the grub2x64.efi binary in the correct location. The command does
not work correctly and causes the GRUB installation to not support Secure
Boot anymore (you might not want use it but others users do).

Comment 2 Guido 2021-04-13 15:51:52 UTC
>You shouldn't use grub2-install on EFI installs, the grub2-efi-x64 package
>installs the grub2x64.efi binary in the correct location. The command does
>not work correctly and causes the GRUB installation to not support Secure
>Boot anymore (you might not want use it but others users do).

Yes, indeed. Thanks.

As an aside, is this new in 2.06? I have used grub2-install utility manually for many years on 2.04 or earlier on Fedora & other distros without issue, ever. On EFI or BIOS, no problems.

Comment 3 Fedora Admin user for bugzilla script actions 2021-05-07 00:34:43 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 4 Javier Martinez Canillas 2021-06-22 15:59:14 UTC

*** This bug has been marked as a duplicate of bug 1917213 ***