Bug 2240989 - Remove dependency on grub2-efi-x64
Summary: Remove dependency on grub2-efi-x64
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: shim
Version: 40
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-27 15:14 UTC by Vitaly Kuznetsov
Modified: 2025-05-20 08:42 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-20 08:42:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vitaly Kuznetsov 2023-09-27 15:14:28 UTC
Currently, shim-x64 package requires grub2 explicitly:

# rpm -q --requires shim-x64
...
grub2-efi-x64 >= 2.06~rc1
...

But the dependency is rather artificial as shim can work well without grub and in some cases this is the desired configuration. E.g. for booting UKIs (kernel-uki-virt in Fedora), direct shim -> UKI scheme is normally used.

Please consider removing "Requires: grub2-efi-%{-a*} >= %{grub_version}".

Reproducible: Always

Steps to Reproduce:
1. install shim-x64 package

Actual Results:  
grub2-efi-x64 is installed as a dependency

Expected Results:  
shim-x64 does not have an explicit dependency on grub2-efi-x64

Comment 1 Gerd Hoffmann 2023-10-13 07:03:06 UTC
In case shim does not work with older versions of grub this can be specified with a conflict against those older versions.
Which appears to be present already:

   $ rpm -q --conflicts shim-x64
   fwupd < 1.5.8
   grub2-efi-x64 < 2.06~rc1

So, all green here, the "Requires: ..." line can simply be dropped.

Comment 2 Aoife Moloney 2024-02-15 22:58:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 3 Aoife Moloney 2025-04-25 10:08:07 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Aoife Moloney 2025-05-16 07:44:30 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Vitaly Kuznetsov 2025-05-16 14:59:58 UTC
Reopening, this is still an issue. Fedora 42:

$ rpm -q shim-x64
shim-x64-15.8-3.x86_64

$ rpm -q --requires shim-x64
efi-filesystem
grub2-efi-x64 >= 2.06-63
mokutil >= 1:0.3.0-15
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1

Comment 6 Aoife Moloney 2025-05-20 08:42:26 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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