The proposed update adds a BUILD_EXCLUSIVE_KERNEL directive to the dkms package. I have added a test build to https://launchpad.net/~smb/+archive/ubuntu/temp01/+packages and in a Focal VM which had the 5.4 and hwe-5.8 kernels installed, did an apt-get install zfs-dkms. This resulted in (relevant tail):
...
DKMS: install completed.
Building initial module for 5.8.0-25-generic
Error! The /var/lib/dkms/zfs/0.8.3/5.8.0-25-generic/x86_64/dkms.conf for module zfs includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
Skipped.
Setting up g++-9 (9.3.0-17ubuntu1~20.04) ...
Setting up g++ (4:9.3.0-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.8ubuntu1.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Processing triggers for systemd (245.4-4ubuntu3.3) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.8.0-25-generic
If I remember previous attempts with the current version correctly, the failure in the prepare stage resulted in the zfs related packages not bein fully installed.
The proposed update adds a BUILD_EXCLUSIVE _KERNEL directive to the dkms package. I have added a test build to https:/ /launchpad. net/~smb/ +archive/ ubuntu/ temp01/ +packages and in a Focal VM which had the 5.4 and hwe-5.8 kernels installed, did an apt-get install zfs-dkms. This resulted in (relevant tail):
... dkms/zfs/ 0.8.3/5. 8.0-25- generic/ x86_64/ dkms.conf for module zfs includes a BUILD_EXCLUSIVE directive which 17ubuntu1~ 20.04) ... alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode img-5.8. 0-25-generic
DKMS: install completed.
Building initial module for 5.8.0-25-generic
Error! The /var/lib/
does not match this kernel/arch. This indicates that it should not be built.
Skipped.
Setting up g++-9 (9.3.0-
Setting up g++ (4:9.3.0-1ubuntu2) ...
update-
Setting up build-essential (12.8ubuntu1.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Processing triggers for systemd (245.4-4ubuntu3.3) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.
If I remember previous attempts with the current version correctly, the failure in the prepare stage resulted in the zfs related packages not bein fully installed.