openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.35k stars 1.72k forks source link

Kernel mnodule not found on RHEL/Rocky 9.4 using kABI #16219

Open tuxmaster5000 opened 2 months ago

tuxmaster5000 commented 2 months ago

On RHEL 9.4 the kernel module will not be found using the kABI version.

modinfo zfs
modinfo: ERROR: Module zfs not found.

OS Kernel: 5.14.0-427.16.1.el9_4.x86_64 package: kmod-zfs-2.1.15-2.el9.x86_64

tonyhutter commented 2 months ago
Thanks for reporting this. It looks like RHEL updated their patch version minor number: RHEL ZFS kmod
5.14.0-427.16.1 5.14.0-427.13.1

I will rebuild the kmods. In the meantime you can use the DKMS packages if you want.

tonyhutter commented 2 months ago

@tuxmaster5000 I uploaded the new kmods - please give it another try.

tuxmaster5000 commented 2 months ago

Hi, I have tried the new packages. And after signing the modules it will work. Do you have an idea, when the problem with the lost module signatures will be resolved? Because until now I must sign the kernel modules after every update with my own key, because the modules from the rpm package are not signed and then an secure boot system will refuse loading the modules.

tonyhutter commented 2 months ago

The modules don't really need to be signed since we sign the RPMs and the repository:

$ rpm -qpi http://download.zfsonlinux.org/epel/9.4/kmod/x86_64/kmod-zfs-2.1.15-3.el9.x86_64.rpm | grep -i signature
warning: http://download.zfsonlinux.org/epel/9.4/kmod/x86_64/kmod-zfs-2.1.15-3.el9.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 9db84141: NOKEY
Signature   : RSA/SHA256, Thu 23 May 2024 03:50:18 PM PDT, Key ID a599fd5e9db84141
tuxmaster5000 commented 2 months ago

@tonyhutter Unfortunately, you are wrong. Because secureboot requires signed modules.

0x444D commented 1 month ago
@tonyhutter kmod is outdated again, current state: RHEL ZFS kmod
5.14.0-427.22.1 5.14.0-427.16.1
tonyhutter commented 1 month ago

@0x444D thanks. The old 2.1.15 kmods work fine under 5.14.0-427.22.1 (due to weak-modules), but the 2.2.4 kmods in the zfs-testing-kmod repo do not work. I'll rebuild those.

tonyhutter commented 1 month ago

@0x444D the new zfs-testing-kmod repo has been updated with the new kmods