You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add cross-compilation support for disk formatting (ZFS)
When formatting disks for a different target architecture (e.g.,
creating an aarch64 disk image from an x86_64 host), tools like ZFS that
communicate with kernel modules must use host-native binaries.
I am guessing there also exist other cases when ZFS comes into play.
This is not a problem with tools like `ext4` because they do everything
in user space.
I have created an example file and used it to build the file system for
the archs `aarch64`, `armv7l`, `i686`, `riscv64` and `x86_64`.
**Note:** The host system must have the following nixos configs enabled.
```nix
boot.binfmt.preferStaticEmulators = true;
boot.binfmt.emulatedSystems = [ "<TARGET_ARCH>" ];
```
see: disko-install:303-317
0 commit comments