No longer working: can't build zfs-dkms for 5.13.1
DigiDr opened this issue · comments
Hiya,
See the following logs on a fresh system. Zfs can't be built against 5.13.1. Not sure what the fix is:
Building for 5.13.1
Building initial module for 5.13.1
configure: error:
*** None of the expected "capability" interfaces were detected.
*** This may be because your kernel version is newer than what is
*** supported, or you are using a patched custom kernel with
*** incompatible modifications.
***
*** ZFS Version: zfs-2.0.3-8~bpo10+1
*** Compatible Kernels: 3.10 - 5.10
Error! Bad return status for module build on kernel: 5.13.1 (x86_64)```
[debian-log.txt](https://github.com/terem42/zfs-hetzner-vm/files/6810761/debian-log.txt)
it you really need newest kernel, use zfs-2.1.0 instead, it supports kernel 5.13,
zfs-2.1.0 is not included in Debian repos, but it can be compiled from the source
The latest (default) rescue kernel loaded is 5.13, which means we cannot built the latest available buster-backports zfs-dkms (which only supports kernel to 5.12).
- I've updated the script to compile from source, as you suggest. I did this manually but believe the changes supplied should work within your script too.
- I've also updated the entire script to use latest debian bullseye. This requires some changes to the repos but otherwise was very easy and i can confirm this is working.
Feel free to pull changes from my branch.
hello,
still the issue exist
Loading new zfs-2.0.3 DKMS files...
Building for 5.13.1
Building initial module for 5.13.1
configure: error:
*** None of the expected "capability" interfaces were detected.
*** This may be because your kernel version is newer than what is
*** supported, or you are using a patched custom kernel with
*** incompatible modifications.
***
*** ZFS Version: zfs-2.0.3-8~bpo10+1
*** Compatible Kernels: 3.10 - 5.10
Error! Bad return status for module build on kernel: 5.13.1 (x86_64)
Consult /var/lib/dkms/zfs/2.0.3/build/make.log for more information.
dpkg: error processing package zfs-dkms (--configure):
installed zfs-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of zfs-zed:
zfs-zed depends on zfs-modules | zfs-dkms; however:
Package zfs-modules is not installed.
Package zfs-dkms which provides zfs-modules is not configured yet.
Package zfs-dkms is not configured yet.
dpkg: error processing package zfs-zed (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.133+deb10u1) ...
Errors were encountered while processing:
zfs-dkms
zfs-zed
E: Sub-process /usr/bin/dpkg returned an error code (1)
@freehussain try using the latest version in my fork.
it still have an issue
Unpacking zfs-dkms (2.1.99-359) ...
dpkg: error processing archive zfs-dkms_2.1.99-359_amd64.deb (--install):
trying to overwrite '/usr/src/zfs-2.1.99/include/cityhash.h', which is also in package kmod-zfs-devel 2.1.99-359
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package zfs-dracut.
Preparing to unpack zfs-dracut_2.1.99-359_amd64.deb ...
Unpacking zfs-dracut (2.1.99-359) ...
Selecting previously unselected package zfs-initramfs.
Preparing to unpack zfs-initramfs_2.1.99-359_amd64.deb ...
Unpacking zfs-initramfs (2.1.99-359) ...
Selecting previously unselected package zfs-test.
Preparing to unpack zfs-test_2.1.99-359_amd64.deb ...
Unpacking zfs-test (2.1.99-359) ...
Setting up kmod-zfs-5.13.1 (2.1.99-359) ...
Setting up kmod-zfs-devel (2.1.99-359) ...
Setting up kmod-zfs-devel-5.13.1 (2.1.99-359) ...
Setting up libnvpair3 (2.1.99-359) ...
Setting up libuutil3 (2.1.99-359) ...
Setting up libzfs5 (2.1.99-359) ...
Setting up libzfs5-devel (2.1.99-359) ...
Setting up libzpool5 (2.1.99-359) ...
Setting up python3-pyzfs (2.1.99-359) ...
Setting up zfs (2.1.99-359) ...
Setting up zfs-dracut (2.1.99-359) ...
Setting up zfs-initramfs (2.1.99-359) ...
Setting up zfs-test (2.1.99-359) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
zfs-dkms_2.1.99-359_amd64.deb
@freehussain hmm we probably only want to build and install either the kmod or the DKMS (not both). I've make a small modification, feel free to try again. I don't currently have a system to play with this on again myself.
There is no need to build the package, you can use mine.
I have latest version 2.1.0 from Openzfs compiled, tested and packed as Debian repo artefact.
It supports kernel 5.13, you can use it, follow instructions here: https://terem42.github.io/zfs-debian/
The module is built using full test coverage on each build via Github Actions, you can fork it and have your own guthub hosted Debian repo, read more here: https://github.com/terem42/zfs-debian
I"ll make new script version for Debian 11, seems rescue system now has zfs install script available.
I#ve created new script for Debian 11, it uses new rescue console from Hetzner, works now