https://github.com/nithanim/openzfs-ubuntu-build
https://github.com/nithanim/openzfs-ubuntu-build
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nithanim/openzfs-ubuntu-build
- Owner: Nithanim
- Created: 2025-03-12T19:20:07.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-12T20:46:10.000Z (about 1 year ago)
- Last Synced: 2025-10-25T13:33:53.752Z (7 months ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a simple compile helper via docker that compiles [OpenZFS](https://github.com/openzfs/zfs/) for Ubuntu.
I had the problem that I could not get the build to work anymore on my machine.
With the docker container it is more reliable and you do not need to clutter your main system.
However, this is NOT foolproof and you need to know what you want.
## How to use
First, clone openzfs with `git clone https://github.com/openzfs/zfs.git`.
Then, `git checkout ` the version of openzfs you want to build.
You can find the versions on the [releases page on Github](https://github.com/openzfs/zfs/releases).
You can find the git tag on the left (e.g. zfs-2.3.1).
Then, tweak the `Dockerfile`.
Use the current Ubuntu version of your system as base for the Dockerfile.
I also included the xanmod kernel, but this is probably not needed, if you are using the DKMS version.
When you are ready, run `run.sh` which will compile everything.
The resulting deb packages are in the root of the cloned zfs repo.
Example:
```
kmod-zfs-6.12.17-x64v2-xanmod1_2.3.0-1_amd64.deb
kmod-zfs-devel_2.3.0-1_amd64.deb
kmod-zfs-devel-6.12.17-x64v2-xanmod1_2.3.0-1_amd64.deb
libnvpair3_2.3.0-1_amd64.deb
libuutil3_2.3.0-1_amd64.deb
libzfs6_2.3.0-1_amd64.deb
libzfs6-devel_2.3.0-1_amd64.deb
libzpool6_2.3.0-1_amd64.deb
pam-zfs-key_2.3.0-1_amd64.deb
zfs_2.3.0-1_amd64.deb
zfs-dkms_2.3.0-1_amd64.deb
zfs-dracut_2.3.0-1_amd64.deb
zfs-initramfs_2.3.0-1_amd64.deb
zfs-test_2.3.0-1_amd64.deb
```
You probably need:
```
libnvpair3_2.3.0-1_amd64.deb // Some util
libuutil3_2.3.0-1_amd64.deb // Some other util
libzfs6_2.3.0-1_amd64.deb // lib for commandline utility
libzpool6_2.3.0-1_amd64.deb // lib for commandline utility
zfs_2.3.0-1_amd64.deb // zfs+zpool commandline utility
zfs-dkms_2.3.0-1_amd64.deb // Builds the kernel module for every kernel installed
zfs-initramfs_2.3.0-1_amd64.deb // Adds ZFS to initramfs
```
Install those deb files with `dpkg -i`.
If it complains, carefully read what the pacakge(es) conflicts with.
E.g. you might need to remove installed old packages of `libnvpair3`, `openzfs-libzfs4`, ... with `dpkg -r`
Good luck!