Can't create archlinux iso with zfs support

This page summarizes the projects mentioned and recommended in the original post on /r/archlinux

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • archzfs

    Package and repository sources for ZFS on Arch Linux

  • # This installs ZFS from the AUR by default. I now use archzfs. It must be setup first. # https://github.com/archzfs/archzfs/wiki paru -S archiso zfs-dkms zfs-utils qemu edk2-ovmf

  • zfsbootmenu

    ZFS Bootloader for root-on-ZFS systems with support for snapshots and native full disk encryption

  • # Add local repo cp -r "$ISODIR"/repo "$ISODIR"/airootfs/root # Trying to pacstrap the zfs-* packages led to a boot failure, I believe because I # switched from AUR -> archzfs. Regardless of reason, removing them makes it impossible # to accidentally pacstrap them. #repo-remove "$ISODIR"/airootfs/root/repo/x86_64/zfsarch.db.tar.gz zfs-dkms #repo-remove "$ISODIR"/airootfs/root/repo/x86_64/zfsarch.db.tar.gz zfs-utils #rm "$ISODIR"/airootfs/root/repo/x86_64/zfs-dkms* #rm "$ISODIR"/airootfs/root/repo/x86_64/zfs-utils* ## Set to my timezone ln -sf /usr/share/zoneinfo/America/Los_Angeles "$ISODIR"/airootfs/etc/localtime ## Disable the beep on boot sd "^play 600 988 1 1319 4" "#play 600 988 1 1319 4" "$ISODIR"/grub/grub.cfg # Get a list of packages on the current machine so they can be easily installed later. # Official Repos paru -Qq > "$ISODIR"/airootfs/root/official_packages.txt # AUR / Other paru -Qmq > "$ISODIR"/airootfs/root/aur_packages.txt # Add ZFSBootMenu curl -o "$ISODIR"/airootfs/root/zfsbootmenu-release-x86_64-v2.1.0.tar.gz \ -L https://github.com/zbm-dev/zfsbootmenu/releases/download/v2.0.0/zfsbootmenu-release-x86_64-v2.0.0.tar.gz # Add the (optional) startup script cat << "EOF" >> "$ISODIR"/airootfs/root/customize_airootfs.sh # Error handling echo "Setting script to stop on errors" set -eu # Add root PW for ssh based on date of archiso. # Not _really_ secure, but meh. good enough. # As long as it's not used on other people's networks. p=$(date +%Y%m%d) p=MyTempPassword$p echo "root:$p" | chpasswd # Add the local repo to pacman.conf cat << "EOF2" >> /etc/pacman.conf # Custom package repo [zfsarch] SigLevel = Optional TrustAll Server = file:///root/repo/x86_64 EOF2 EOF

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts