Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1640920 - grub2-efi and shim packages should be protected in dnf
Summary: grub2-efi and shim packages should be protected in dnf
Keywords:
Status: CLOSED DUPLICATE of bug 1874541
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-19 07:41 UTC by Marko Myllynen
Modified: 2021-06-29 20:05 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-29 20:05:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Marko Myllynen 2018-10-19 07:41:21 UTC
Description of problem:
When installing Fedora 29 on UEFI system Anaconda correctly adds grub2-efi and shim packages as part of the installation package set (e.g., grub2-efi-x64 and shim-x64 on an x86_64 laptop, for some reason also the 32-bit packages).

These packages are not protected in dnf (under /etc/yum/protected.d) so a simple administrator action or a script or playbook could remove these packages, rendering the system completely unbootable so that even GRUB menu is never reached (as /boot/efi/EFI/redhat/shimx64.efi would be missing).

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

How reproducible:
Always

Steps to Reproduce:
1. Install Fedora 29 on UEFI system
2. Reboot
3. dnf remove grub2-efi-x64 shim-x64

Actual results:
Critical packages for system to even show GRUB menu are allowed to be removed.

Expected results:
Critical packages are protected from removal (at least on dnf level, preferable also with rpm dependencies so that "rpm -e ..." would fail as well).

Comment 1 Vladimír Slávik 2019-10-04 17:03:21 UTC
On [my install of] Fedora 30 the location to put this data appears to be /etc/dnf/protected.d/*.conf The files I see on my system in there are all provided by the respective packages. Following that logic, the bug really is against the grub2 and shim components.

Comment 2 Adam Williamson 2019-10-04 17:09:21 UTC
There's more discussion of this in the RHEL version of this bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1639168

where I suggested the same thing. I'm not entirely clear why the initial proposals in that bug are all to do something more complicated when a simple fix appears to be available.

Comment 3 Vladimír Slávik 2019-10-07 09:01:28 UTC
I agree - let's move this to grub2.

Comment 4 Ben Cotton 2019-10-31 18:47:23 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
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
Fedora 'version' of '29'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 29 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Adam Williamson 2019-11-04 18:08:23 UTC
This is still a valid proposal, I believe.

Comment 6 Ben Cotton 2020-02-11 15:44:19 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 7 Matthew Miller 2020-10-22 14:30:30 UTC
Note that the shim package is covered by #1874541

Comment 8 Ben Cotton 2021-02-09 15:06:55 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 9 Javier Martinez Canillas 2021-06-29 20:05:08 UTC

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


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