Install CachyOS on ZFS
4/26/25Less than 1 minute
Partitioning
$ lsblk --output NAME,FSTYPE,LABEL,PARTTYPENAME,SIZE,MOUNTPOINT
NAME FSTYPE LABEL PARTTYPENAME SIZE MOUNTPOINT
nvme0n1 3.7T
├─nvme0n1p1 vfat EFI EFI System 1G /boot/efi
├─nvme0n1p2 vfat Boot Microsoft basic data 3G /boot
└─nvme0n1p3 zfs_member zpcachyos Linux filesystem 3.7TGRUB_SAVEDEFAULT=true will only work if /boot/grub is not on btrfs / ZFS, because GRUB cannot write to btrfs / ZFS.
How to disable zram?
# /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="systemd.zram=0"Specifying boot ID has no effect, no persistent journal was found.
With your persistent journal being stored on a ZFS filesystem, there is now a race condition on startup beween
zfs-mount.service, which will mount your/var/logdirectory, andsystemd-journald.service, which will try to write to it before it’s been mounted. This can causesystemd-journaldto fall back to using an in-memory journal, or result in unpredictable loging behaviourThe fix is to create a dependency for
systemd-journald.serviceonzfs-mount.service:
# /etc/systemd/system/systemd-journald.service.d/zfs.conf
[Unit]
After = zfs-mount.service
Requires = zfs-mount.service