Bug 2020916

Summary: Kernel removal leaves a file
Product: [Fedora] Fedora Reporter: Artem S. Tashkinov <aros>
Component: systemdAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: acaringi, adscvr, airlied, alciregi, bskeggs, fedoraproject, filbranden, flepied, hdegoede, jarodwilson, jeremy, jforbes, jglisse, jonathan, josef, kernel-maint, lgoncalv, linville, lnykryn, masami256, mchehab, msekleta, ptalbert, ryncsn, ssahani, s, steved, systemd-maint, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-14 17:46:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Artem S. Tashkinov 2021-11-07 10:54:50 UTC
dnf remove 'kenel*version' leaves /lib/modules/version.x86_64/modules.builtin.alias.bin file

Please fix.

Comment 1 Artem S. Tashkinov 2021-11-07 11:00:39 UTC
Also, also!

cd /usr/share/doc/kernel-keys

ls -la
total 112
drwxr-xr-x.  20 root root  4096 Nov  7 10:50 .
drwxr-xr-x. 853 root root 32768 Nov  5 00:01 ..
drwxr-xr-x.   2 root root  4096 Mar 12  2021 5.10.13-200.fc33.x86_64
drwxr-xr-x.   2 root root  4096 Feb 28  2021 5.10.17-200.fc33.x86_64
drwxr-xr-x.   2 root root  4096 Mar 24  2021 5.10.19-200.fc33.x86_64
drwxr-xr-x.   2 root root  4096 May 31 15:41 5.10.23-200.fc33.x86_64
drwxr-xr-x.   2 root root  4096 Jan 23  2021 5.10.7-200.fc33.x86_64
drwxr-xr-x.   2 root root  4096 Feb  7  2021 5.10.9-201.fc33.x86_64
drwxr-xr-x.   2 root root  4096 Nov  4 23:35 5.14.15-300.fc35.x86_64
drwxr-xr-x.   2 root root  4096 Jan 11  2020 5.4.10-200.fc31.x86_64
drwxr-xr-x.   2 root root  4096 Feb 24  2020 5.4.12-200.fc31.x86_64
drwxr-xr-x.   2 root root  4096 Jan 23  2020 5.4.8-200.fc31.x86_64
drwxr-xr-x.   2 root root  4096 Jan 12  2020 5.5.0-0.rc5.git2.1.fc32.x86_64
drwxr-xr-x.   2 root root  4096 Aug  4  2020 5.6.16-300.fc32.x86_64
drwxr-xr-x.   2 root root  4096 Jun 15  2020 5.6.8-300.fc32.x86_64
drwxr-xr-x.   2 root root  4096 Sep  1  2020 5.7.6-201.fc32.x86_64
drwxr-xr-x.   2 root root  4096 Nov 30  2020 5.8.13-200.fc32.x86_64
drwxr-xr-x.   2 root root  4096 Oct 10  2020 5.8.4-200.fc32.x86_64
drwxr-xr-x.   2 root root  4096 Feb  6  2021 5.9.13-200.fc33.x86_64
drwxr-xr-x.   2 root root  4096 Dec 16  2020 5.9.8-100.fc32.x86_64

Comment 2 Artem S. Tashkinov 2022-01-13 10:51:04 UTC
Anyone?

Comment 3 Justin M. Forbes 2022-01-14 17:46:10 UTC
This is a dup of a systemd bug. The keys directories are a kernel issue, and I will get that taken care of.

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

Comment 4 Justin M. Forbes 2022-01-14 18:01:20 UTC
Actually the kernel-keys issue was fixed over a year ago, but it can't remove older files. 

https://gitlab.com/cki-project/kernel-ark/-/commit/d427a07900b006691df71c2b3b759f7e97c7c27a

The "merged 3 days ago" is just because the commit ID changed due to rebase. It was commit over a year ago, which is why you have no empty directories between 5.10 and 5.14