#!/bin/bash # set -euo pipefail: abort on errors, unset vars, and pipeline failures. set -euo pipefail source "$(dirname "${BASH_SOURCE[0]}")/../lib/logging.sh" # zfs-dkms is AUR-only because the ZFS on Linux licence is GPL-incompatible # and cannot be shipped in the official Arch repos. # --answerdiff None: skip the "view PKGBUILD diff?" prompt automatically. # --answerclean All: automatically remove leftover build artifacts after build. # --noconfirm: suppress the final "proceed with installation?" confirmation. # zfs-dkms builds a DKMS module that recompiles against each new kernel # automatically, so ZFS survives kernel upgrades without manual intervention. log "Installing ZFS kernel module (AUR)..." yay -S --answerdiff None --answerclean All --noconfirm zfs-dkms log "ZFS installed."