Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reopening #111 (ZFS) #182

Open
truatpasteurdotfr opened this issue Mar 28, 2024 · 3 comments
Open

reopening #111 (ZFS) #182

truatpasteurdotfr opened this issue Mar 28, 2024 · 3 comments

Comments

@truatpasteurdotfr
Copy link

reporting that the kernel module build and loads:

[tru@mba15-m2-nixos:~]$ uname -a
Linux mba15-m2-nixos 6.6.0-asahi #1-NixOS SMP PREEMPT_DYNAMIC Tue Jan  1 00:00:00 UTC 1980 aarch64 GNU/Linux
[tru@mba15-m2-nixos:~]$ modinfo zfs|head
filename:       /run/booted-system/kernel-modules/lib/modules/6.6.0-asahi/extra/zfs.ko.zst
version:        2.2.3-1
license:        CDDL
license:        Dual BSD/GPL
license:        Dual MIT/GPL
author:         OpenZFS
description:    ZFS
alias:          zzstd
alias:          zcommon
alias:          zunicode
[tru@mba15-m2-nixos:~]$ lsmod|grep zfs
zfs                  4440064  6
spl                   131072  1 zfs

/etc/nixos/configuration.nix
...

# ZFS
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.forceImportRoot = false;
networking.hostId= "007f0200";
#        error: Package ‘zfs-kernel-2.2.3-6.6.0-asahi’ in /nix/store/r944d4j7p39b769x7ykbsiz5wm3q8agf-nixos-23.11/nixos/pkgs/os-specific/linux/zfs/generic.nix:213 is marked as broken, refusing to evaluate.
nixpkgs.config.allowBroken = true;

@truatpasteurdotfr
Copy link
Author

oops forgot to report that I was using https://github.com/tpwrules/nixos-apple-silicon/releases/tag/release-2024-03-24

@karlskewes
Copy link

Original issue: #111

@lloeki
Copy link

lloeki commented Oct 3, 2024

AIUI the main pain point is:

  1. Asahi patches track a recent kernel
  2. ZFS module tracks a more stable kernel

So with a single linux-asahi kernel package:

  • either a more stable kernel is tracked and Apple Silicon support via Asahi ends up being dragged down by ZFS
  • or there's a risk of ZFS not building anymore against the too-recent kernel required by the latest Asahi patchset

Could there be another strategy? I'm thinking that it ties in with issues such as #234, where intentionally targeting a stable channel conflicts with the kernel version matching the Asahi patchset requires a Rust compiler more recent than what's provided by 24.05.

So, what if there were two linux-asahi kernel packages? One that would track the latest Asahi patches and one that would track a more stable kernel with a non-latest Asahi patchset but compatible with stable NixOS channels?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants