Note: May update for kernel v6 Ubuntu and Proxmox (proxmox uses Ubuntu kernels), if you have suggestions, please submit a PR.
- compiles zfs modules into kernel
- renders
zfs-initramfs
,zfs-dracut
,zfs-dkms
packages unnecessary - build specified zfs package (has only been tested 2.0+)
- build specified kernel (v5.x.x only)
- Vanilla build system: incorporate your
.config
and patches as usual
To run - retrieve build dependencies:
% chmod +x *.sh
% ./install-build-requirements.sh
invoke script with $ZFS_VERSION $KERNEL_VERSION and $MAKECOMMAND (optional) Example:
% ./build-zfs-kernel.sh 2.0.3 5.10.17 modconfig
Or run without any make command - e.g.:
% ./build-zfs-kernel.sh 2.0.3 5.10.17
The above two arguments, $ZFS_VERSION and $KERNEL_VERSION are required.
Find the versions you'd like to use with the builder:
- Latest zfs releases: https://github.com/openzfs/zfs/releases
- List of compatible kernels: https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/
- Make commands (not required) - discussion: https://www.reddit.com/r/linux/comments/1aq1vg/linux_protip_if_youre_building_a_custom_local/
Tested Ubuntu 20.04 through 21.04, Debian 10 and 11-testing repo.