omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

ZFS File System Support

Open avoiceofreason opened this issue 3 months ago • 4 comments

System details

Any

What's wrong?

ZFS file system support is a MUST for me. Would prefer Omarchy was installed on top of ZFS, but appreciate the BTRFS compromise.

However installing ZFS support on Omarchy V4 is a bit of a ballache because its not on an LTS kernel so needs experimental flag. Here's how I did it:

sudo pacman -Syu sudo pacman -S linux-headers dkms yay -S zfs-dkms zfs-utils

Force the build with experimental support

cd /var/lib/dkms/zfs/$(pacman -Q zfs-dkms | awk '{print $2}' | cut -d- -f1)/build sudo ./configure
--disable-dependency-tracking
--prefix=/usr
--with-config=kernel
--with-linux=/usr/lib/modules/$(uname -r)/build
--with-linux-obj=/usr/lib/modules/$(uname -r)/build
--enable-linux-experimental

sudo make -C module -j$(nproc) sudo make -C module install sudo depmod -a sudo modprobe zfs

sudo systemctl enable --now zfs-import-cache sudo systemctl enable --now zfs-import.target sudo systemctl enable --now zfs-mount sudo systemctl enable --now zfs.target sudo systemctl enable --now zfs-zed

WARNING: Using ZFS with kernel 7.1.8-arch1-3 is EXPERIMENTAL and SERIOUS DATA LOSS may occur! (although that's a stock message even on kernel 6.17) (it appears rock solid so far)

Be nice if this could be baked in as standard, or as an optional menu install

avoiceofreason avatar Aug 21 '26 11:08 avoiceofreason

Agreed, I'm currently trying to migrate from another Arch distro with a few important zpools in the mix. I personally don't necessarily need the OS installed on ZFS directly (it seems btrfs for Omarchy is well dialed in), but at least having the option to pull in zpools from an older setup and continue riding that for /home and other filesystems without a painful migration, and the ability to mount at boot or not suddenly losing the ZFS kernel module after an update, would be really nice. Even with a bit of post-installation work.

I found the following (which seems like an OK compromise) but obviously no guarantee it would continue to be maintained, and having something like this be a first class citizen would be great:

https://github.com/peteonrails/omarchy-zfs

mop-along avatar Aug 25 '26 16:08 mop-along

but at least having the option to pull in zpools from an older setup and continue riding that for /home and other filesystems without a painful migration

The Omarchy installation is supposed to be as straight forward as it can be for users that are not "us". I'm appreciative of the process, but i too would like more options, at least a "basic" and "advanced" on the installer should have done the work for us..

Somnius avatar Aug 29 '26 08:08 Somnius

zfs installs out of the box now, looks like aur got updated with a version of zfs, supporting the current kernel

avarakin avatar Sep 01 '26 20:09 avarakin

Yes having native ZFS support with the installer would be really great.

tlvenn avatar Oct 12 '26 13:10 tlvenn