zfs-linux 0.8.3-1ubuntu12.4 ADT test failure with linux-hwe-5.8 5.8.0-25.26~20.04.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Stefan Bader |
Bug Description
[SRU Justification]
Impact: When attempting to compile the zfs-dkms module on a 5.8 kernel the module fails to properly configure the build. The kernel driver part of zfs-linux is only prepared to handle the kernels it released with. For Ubuntu kernels the zfs module is build based on the zfs-dkms that is current for the series the kernel originates from (so Groovy for 5.8). And this should be the encouraged way to do this.
Fix: Add a limitation to the dkms package to only build for supported kernels. This causes the whole build/install to be skipped on 5.8 rather than to fail.
Testcase: dkms install runs for 5.4 and 5.8 in Focal. For the 5.8 kernel this should result in:
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.
Regression Potential: Since the module fails to compile for the newer kernel there should be nothing that can regress.
---
Testing failed on:
amd64: https:/
arm64: https:/
ppc64el: https:/
s390x: https:/
tags: | added: kernel-adt-failure |
Changed in zfs-linux (Ubuntu Focal): | |
assignee: | nobody → Stefan Bader (smb) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in zfs-linux (Ubuntu): | |
status: | New → Invalid |
description: | updated |
Changed in zfs-linux (Ubuntu): | |
status: | Invalid → Fix Released |
importance: | Undecided → Medium |
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.