Bug 2451626 - Upgrade shim does not remove old version direcory /usr/lib/efi/shim/<older version>
Summary: Upgrade shim does not remove old version direcory /usr/lib/efi/shim/<older ve...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: shim
Version: 44
Hardware: Unspecified
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: 2026-03-26 08:06 UTC by HuijingHei
Modified: 2026-03-26 08:06 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description HuijingHei 2026-03-26 08:06:58 UTC
After upgrade shim, find old version directory /usr/lib/efi/shim/<older version> is not removed.

Reproducible: Always

Steps to Reproduce:
1. # dnf upgrade -y https://kojipkgs.fedoraproject.org//packages/shim/16.1/6/aarch64/shim-aa64-16.1-6.aarch64.rpm
2. # ls -al /usr/lib/efi/shim/*/*/*
/usr/lib/efi/shim/16.1-5/EFI/BOOT:
total 0
drwxr-xr-x. 2 root root  6 Mar 26 03:45 .
drwxr-xr-x. 4 root root 32 Mar 26 03:44 ..

/usr/lib/efi/shim/16.1-5/EFI/fedora:
total 0
drwxr-xr-x. 2 root root  6 Mar 26 03:45 .
drwxr-xr-x. 4 root root 32 Mar 26 03:44 ..

/usr/lib/efi/shim/16.1-6/EFI/BOOT:
total 1144
drwxr-xr-x. 2 root root      44 Mar 26 03:45 .
drwxr-xr-x. 4 root root      32 Mar 18 06:21 ..
-rwx------. 3 root root 1045768 Feb  5 19:00 BOOTAA64.EFI
-rwx------. 1 root root  120576 Feb  5 19:00 fbaa64.efi

/usr/lib/efi/shim/16.1-6/EFI/fedora:
total 2944
drwxr-xr-x. 2 root root      80 Mar 26 03:45 .
drwxr-xr-x. 4 root root      32 Mar 18 06:21 ..
-rw-------. 1 root root     112 Feb  5 19:00 BOOTAA64.CSV
-rwx------. 1 root root  912128 Feb  5 19:00 mmaa64.efi
-rwx------. 3 root root 1045768 Feb  5 19:00 shimaa64.efi
-rwx------. 3 root root 1045768 Feb  5 19:00 shim.efi
Actual Results:
After upgrade, the old /usr/lib/efi/shim/16.1-5 is not removed

Expected Results:
After upgrade, the old /usr/lib/efi/shim/16.1-5 should be removed


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