Skip to content

[0.8.5 too] was 0.8.4 dkms won't compile unless I remove 0.8.3 folder from /var/lib/dkms/zfs/ #10463

Closed
@Germano0

Description

@Germano0

System information

Type Version/Name
Distribution Name CentOS
Distribution Version 8.2
Linux Kernel 4.18.0-193.6.3.el8_2.x86_64
Architecture x86_64
ZFS Version 0.8.4-1
SPL Version 0.8.4-1

Describe the problem you're observing

I updated to CentOS 8.2 and ZFS 0.8.4, so after the reboot I had to reload ZFS module (due #10462) so I ran

# modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/4.18.0-193.6.3.el8_2.x86_64

to fix this error I tried

[root@machine user]# dkms autoinstall
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/zfs/0.8.3/source/dkms.conf does not exist.

Since it is a kind of error I have seen on other packages like Wireguard, I knew that if after an package update, dkms autoinstall failed, I have to remove the older folder in /var/lib/dkms, so I did it:

[root@machine user]# ls /var/lib/dkms/zfs/
0.8.3  0.8.4  kernel-4.18.0-147.5.1.el8_1.x86_64-x86_64  kernel-4.18.0-147.8.1.el8_1.x86_64-x86_64
[root@machine user]# rm -rf /var/lib/dkms/zfs/0.8.3/
[root@machine user]# dkms autoinstall

and then the machine started to compile the new module

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions