Bug 2240994 - grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot.
Summary: grub2-install: error: this utility cannot be used for EFI platforms because i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 39
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Nicolas Frayer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-27 15:50 UTC by Ali
Modified: 2024-06-02 13:24 UTC (History)
6 users (show)

Fixed In Version: grub2-2.06-109.fc39 grub2-2.06-107.fc38
Clone Of:
Environment:
Last Closed: 2023-11-19 01:24:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ali 2023-09-27 15:50:18 UTC
Even when installing grub into a USB drive grub2-install refuses to work (I'm not trying to install Fedora into a USB drive) ...
Even with --force flag ...

> sudo grub2-install --force --recheck --target=x86_64-efi --removable --boot-directory=sdb2 --efi-directory=sdb1 --directory=/usr/lib/grub/x86_64-efi/
> grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot.

What's the purpose of a distro if it ships purposefully neutered packages and users have to compile from upstream source to just get some basic functionality?
Why not respect the --force flag?


Reproducible: Always

Steps to Reproduce:
1. sudo grub2-install --force --recheck --target=x86_64-efi --removable --boot-directory=sdb2 --efi-directory=sdb1 --directory=/usr/lib/grub/x86_64-efi/
Actual Results:  
grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot.

Expected Results:  
Installation finished. No error reported.

Comment 1 Fedora Update System 2023-11-15 19:16:37 UTC
FEDORA-2023-4d409dcff3 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4d409dcff3

Comment 2 Fedora Update System 2023-11-15 19:19:27 UTC
FEDORA-2023-2a9508cf8d has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2a9508cf8d

Comment 3 Fedora Update System 2023-11-16 04:06:52 UTC
FEDORA-2023-2a9508cf8d has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-2a9508cf8d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-2a9508cf8d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2023-11-16 04:14:09 UTC
FEDORA-2023-4d409dcff3 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-4d409dcff3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-4d409dcff3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-11-19 01:24:45 UTC
FEDORA-2023-4d409dcff3 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2023-11-25 02:53:47 UTC
FEDORA-2023-2a9508cf8d has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Patrick 2024-06-02 13:24:01 UTC
I have 

grub2-install /dev/sda
Installing for x86_64-efi platform.
grub2-install: error: This utility should not be used for EFI platforms because it does not support UEFI Secure Boot. If you really wish to proceed, invoke the --force option.
Make sure Secure Boot is disabled before proceeding.

on a fedora 38


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