Bug 1948731 - grub2 2.06rc1 "installs" with error - will not boot
Summary: grub2 2.06rc1 "installs" with error - will not boot
Keywords:
Status: CLOSED DUPLICATE of bug 1917213
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Javier Martinez Canillas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-12 20:25 UTC by Guido
Modified: 2021-06-22 15:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-22 15:59:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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