Why does reinstalling a kernel remove my dkms modules?

Whenever I reinstall a kernel, all my dkms modules are deleted.

It seems like that shouldn’t happen so I am assuming I am missing a step?

Running scriptlet: kernel-core-5.6.19-300.fc32.x86_64                                                                               10/10 
dkms: removing: zfs 0.8.4 (5.6.19-300.fc32.x86_64) (x86_64)

-------- Uninstall Beginning --------
Module:  zfs
Version: 0.8.4
Kernel:  5.6.19-300.fc32.x86_64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.
Removing any linked weak-modules

zavl.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/5.6.19-300.fc32.x86_64/extra/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


znvpair.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/5.6.19-300.fc32.x86_64/extra/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


zunicode.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/5.6.19-300.fc32.x86_64/extra/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


zcommon.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/5.6.19-300.fc32.x86_64/extra/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


zfs.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/5.6.19-300.fc32.x86_64/extra/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


icp.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/5.6.19-300.fc32.x86_64/extra/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


zlua.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/5.6.19-300.fc32.x86_64/extra/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


spl.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/5.6.19-300.fc32.x86_64/extra/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod.....

DKMS: uninstall completed.

------------------------------
Deleting module version: 0.8.4
completely from the DKMS tree.
------------------------------
Done.

So…this just started working. Now when I re-install kernel-core it re-installs the dkms modules afterwards.

Unfortunately, I am not sure what changed so I think I may need to start from scratch and rebuild to see if that issues recurs. :face_with_monocle:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.