#1128061 zfs-linux: Consider building and uploading zfs-modules-<KVER> packages

#1128061#5
Date:
2026-02-15 13:58:21 UTC
From:
To:
Dear Maintainer,

I would like to open a discussion around providing prebuilt kernel
modules for ZFS in Debian to better support a few specific use cases.

Right now, the only option for stable usage of ZFS is through zfs-dkms
which necessitates the installation of a full build system such that the
module can be built dynamically. This is pretty normal and works well.

However, there are use cases where a full build system is either not
feasible or not permitted - for example, building ZFS at runtime during
installation is not very practical and hinders the ability for users to
run ZFS-on-root in Debian systems. It's still doable, of course, but
there are extra steps needed to build the modules ahead of time such
that they can be included in a custom installer.

Additionally, having a full build system installed can be a security
risk for high-criticality environments (which is the angle I'm
approaching this from) where a common goal is to minimize the number of
installed tools to reduce potential attack surface. The ability for an
attacker to compile code locally on a machine is of particular use for
obvious reasons.

As such, I'd like to explore if it's feasible for the zfs-linux package
to start providing prebuilt modules in zfs-modules-<KVER> packages - the
basic requirements appears to already be there in the debianized
source (both for normal systems and d-i), and it's just not being used.

I am unsure if there are any Debian policy blockers for doing this, so
I'd love to be enlightened there. There should not be any licensing
problems with respect to the CDDL, as the module would be distributed
entirely separately from the kernel same as the DKMS sources are today.

Is this something that could be explored?

#1128061#10
Date:
2026-02-15 14:15:04 UTC
From:
To:
[Jarl Gullberg]

As far as I know, the license picked by SUN Microsystems for the ZFS
implementation in Solaris, which was explicitly phrased to be
incompatible with the Linux kernel license and prohibits distribution of
combined works, if I remember correctly, is the blocker for this.  It is
thus a legal risk involved in distributing prebuilt binary packages.  I
am aware that Ubuntu have choosen to accept this risk and distribute
prebuilt binary packages anyway.  I guess they feel their stock of
lawyers make this an acceptable risk.  It is not obvious that Debian
have the required surplus of cash to take a similar risk.

Note, I would love to be able to set up Debian with zfs on the root file
system with packages directly from the Debian archive, but have no idea
how to make it happen with the current legal constraints.

#1128061#15
Date:
2026-02-15 14:32:22 UTC
From:
To:
Right - to be clear, Ubuntu has taken the steps of actually bundling the module in the kernel package itself but not compiling it into the image. My ask here is to have a separate zfs-modules-<KVER> package that is not bundled with the kernel (or the installer) automatically, avoiding tainting the kernel package (or any other package) with potential licensing issues.
 
I don't think there should be any problems with even a very broad reading of the CDDL of shipping a prebuilt module in a separate package, which the end user can then choose to install. OpenZFS specifically doesn't use any of the GPL exports either, so to my understanding the zfs-modules-<KVER> package could be under the CDDL as well.
 
--  
Jarl Gullberg
CEO & CTO
Visar Systems AB
 
+46 73 644 96 64
jarl.gullberg@visar-systems.com
https://visar-systems.com
 

"Petter Reinholdtsen" pere@hungry.com – 15 februari 2026 kl. 15:14