Bug 1734311 - dkms modules left behind when kernel is removed.
Summary: dkms modules left behind when kernel is removed.
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dkms
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Simone Caronni
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-30 08:36 UTC by Stefan van der Eijk
Modified: 2020-01-24 02:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Stefan van der Eijk 2019-07-30 08:36:25 UTC
Description of problem:

Removing kernel doesn't clean up dkms modules of that kernel version.

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


How reproducible:

Remove the old kernel version (5.1.19-300.fc30.x86_64 in this case):

# dnf remove `rpm -qa | grep 5.1.19-300.fc30.x86_64`

Run dkms status:

# dkms status
zfs, 0.8.1, 5.1.20-300.fc30.x86_64, x86_64: installed

Run updatedb and search for DKMS related files are left behind:

# updatedb
# locate 5.1.19-300.fc30
/usr/lib/modules/5.1.19-300.fc30.x86_64
/usr/lib/modules/5.1.19-300.fc30.x86_64/extra
/usr/lib/modules/5.1.19-300.fc30.x86_64/extra/icp.ko.xz
/usr/lib/modules/5.1.19-300.fc30.x86_64/extra/spl.ko.xz
/usr/lib/modules/5.1.19-300.fc30.x86_64/extra/zavl.ko.xz
/usr/lib/modules/5.1.19-300.fc30.x86_64/extra/zcommon.ko.xz
/usr/lib/modules/5.1.19-300.fc30.x86_64/extra/zfs.ko.xz
/usr/lib/modules/5.1.19-300.fc30.x86_64/extra/zlua.ko.xz
/usr/lib/modules/5.1.19-300.fc30.x86_64/extra/znvpair.ko.xz
/usr/lib/modules/5.1.19-300.fc30.x86_64/extra/zunicode.ko.xz
/var/lib/dkms/zfs/kernel-5.1.19-300.fc30.x86_64-x86_64
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/Module.symvers
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/log
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/module
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/zfs_config.h
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/log/make.log
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/module/icp.ko.xz
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/module/spl.ko.xz
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/module/zavl.ko.xz
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/module/zcommon.ko.xz
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/module/zfs.ko.xz
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/module/zlua.ko.xz
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/module/znvpair.ko.xz
/var/lib/dkms/zfs/0.8.1/5.1.19-300.fc30.x86_64/x86_64/module/zunicode.ko.xz




Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:

All dkms files related to the kernel version are removed from the system.

# updatedb ; locate 5.1.19-300.fc30
<no results>

Additional info:


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