Public bug reported: Due to a mistake in the BUILD_EXCLUSIVE_KERNEL regex in dkms.conf, dkms will still consider zfs-dkms to be buildable on kernel version 5.10+. This can happen if one installs a mainline kernel from the mainline PPA for one reason or another [1].
The following patch to dkms.conf should fix the issue: --- ./dkms.conf.orig 2021-03-16 04:15:55.077568974 +0700 +++ /usr/src/zfs-0.8.3/dkms.conf 2021-03-16 04:17:16.598219797 +0700 @@ -1,6 +1,6 @@ PACKAGE_NAME="zfs" PACKAGE_VERSION="0.8.3" -BUILD_EXCLUSIVE_KERNEL="^(4.[0-9]+|5.[01234])." +BUILD_EXCLUSIVE_KERNEL='^(4.[0-9]+|5.[01234])\.' PACKAGE_CONFIG="/etc/sysconfig/zfs" PRE_BUILD="configure --prefix=/usr Although it's not convenient for me at the moment to create a debdiff. Related: LP: #1902701 [1] For me it's to get a complete fix for LP: #1887190, as Focal's HWE kernel doesn't seem to work. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: zfs-dkms 0.8.3-1ubuntu12.6 Uname: Linux 5.11.6-051106-generic x86_64 ApportVersion: 2.20.11-0ubuntu27.16 Architecture: amd64 CasperMD5CheckResult: skip Date: Tue Mar 16 04:26:08 2021 InstallationDate: Installed on 2021-03-15 (0 days ago) InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1) PackageArchitecture: all ProcEnviron: TERM=xterm-256color PATH=(custom, no user) LANG=th_TH.UTF-8 SHELL=/bin/bash SourcePackage: zfs-linux UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: zfs-linux (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1919252 Title: zfs-dkms on Focal still allow building on Linux kernel version 5.10+ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1919252/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs