Skip to content
Amy edited this page May 12, 2024 · 5 revisions

Prerequisites

  1. install clean-chroot-manageraur
  2. Edit ~/.config/clean-chroot-manager.conf and set CHROOTPATH64 to a valid path (run ccm64 p as root to generate a basic config file)
  3. Clone this repository
$ git clone https://github.com/archzfs/archzfs.git
$ cd archzfs
  1. Edit conf.sh and update at least makepkg_nonpriv_user

Building

To build any of the available zfs packages, you have to build the utils packages first.

# ./build.sh utils update make
# ./build.sh utils make

You can now build modules for one of the available kernels

# ./build.sh std update
# ./build.sh std make

Available kernel configs:

  • std: default linux kernel
  • lts: linux-lts
  • hardened: linux-hardened
  • zen: linux-zen
  • vfio: linux-vfio
  • dkms: dkms packages

If everything worked, the build packages are now in packages/<kernel>

Combining commands

You can combine multiple calls of build.sh:

# ./build.sh utils std lts update make

This will create the PKGBUILDS and build the utils, linux and linux-lts package in one command. To build all available packages you can use ./build.sh all update make