User Tools

Create arch custom ISO with ZFS support

  • Install archiso
    pacman -S archiso
  • Create build tree in /var/tmp
    cd /var/tmp; mkdir -p archiso-zfs/{work,isobuild}
  • Copy in proto ISO
    cp -r /usr/share/archiso/configs/releng/. archiso-zfs
  • Edit archiso-zfs/packages.x86_64 and add:
    linux-headers
    libunwind
    zfs-utils
    zfs-dkms
  • Add custom repo to archiso-zfs/pacman.conf
    [archzfs]
    SigLevel = TrustAll Optional
    Server = file:///var/tmp/archzfs
  • Create working archzfs directory and populate
    mkdir archzfs
    cd archzfs
    git clone https://aur.archlinux.org/zfs-dkms.git
    git clone https://aur.archlinux.org/zfs-utils.git
  • build all packages and make repo
    cd zfs-dkms
    makepkg -s
    cd ../zfs-utils
    makepkg -s
    cd ..
    for f in */*zst; do ln $f .; done
    repo-add /var/tmp/archzfs/archzfs.db.tar.zst /var/tmp/archzfs/*/*zst
  • change directory to archiso-zfs and build iso
    cd ../archiso-zfs/
    sudo mkarchiso -v -w work -o isobuild /var/tmp/archiso-zfs
  • You should now have an ISO in the isobuild directory such as:
    /var/tmp/archiso-zfs/isobuild/archlinux-2025.08.28-x86_64.iso
  • I've attached this ISO if you'd like to use it for your install (linux 6.16.3 / zfs 2.3.4) archlinux-2025.08.28-x86_64.iso

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information