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

ZFS broken on latest linux (>5.10) #150517

Closed
rien opened this issue Dec 13, 2021 · 7 comments
Closed

ZFS broken on latest linux (>5.10) #150517

rien opened this issue Dec 13, 2021 · 7 comments

Comments

@rien
Copy link
Contributor

rien commented Dec 13, 2021

Describe the bug

ZFS (both stable and unstable) are currently marked as broken on linux version 5.15 because it isn't mentioned as supported in the latest release.

Version 5.14 was marked as supported, but since #147446, this version is EOL and is removed, leaving the latest supported version on 5.10 (broken on my own system).

There has been a PR merged into zfs' master (openzfs/zfs#12824) claiming support for 5.15, but I don't know if it is wise to include this in nixpkgs yet.

I've made this issue to

    1. track when this is resolved,
    1. serve as easy-to-find issue for others with the same problem,
    1. ask whether it is a good idea to update zfsUnstable to zfs' latest commit on master.

For what it's worth: @Mic92 has a patch which enables ZFS for 5.15 and they claim that it is running just fine Mic92@b31e0be.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Use ZFS
  2. Set boot.kernelPackages to linuxPackages_latest or linuxPackages_5_15.
  3. Build the system
  4. It fails with the message that zfs is broken.

Relevant issues/PR's

Notify maintainers

@hmenke @jcumming @jonringer @wizeman @fpletz @globin

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.14.21, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4`
 - channels(rien): `""`
 - nixpkgs: `/etc/nixpkgs`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
 - zfs
 - zfsUnstable
 - linuxPackages_5_15
# a list of nixos modules affected by the problem
module:
 - boot.zfs
@hmenke
Copy link
Member

hmenke commented Dec 13, 2021

I've submitted a feature request on OpenZFS: openzfs/zfs#12847

@Mic92
Copy link
Member

Mic92 commented Dec 13, 2021

Yep. It's working for over a month. You can cherry-pick this commit if you want:

Mic92@b31e0be

archlinux zfs user likely also using these kernel versions for quite a while.

@dtzWill
Copy link
Member

dtzWill commented Dec 13, 2021

Anyone have an overlay snippet or something to accomplish this? Would rather not start carrying patches over nixpkgs in my own fork again, "yet", I saw part of one (overlay-based solution) on another thread for this issue, but wasn't sure how to complete it or if it's actually been used successfully... Anyway if anyone has something to help there that'd be swell, thanks! :)

@hmenke
Copy link
Member

hmenke commented Dec 13, 2021

@dtzWill Just set

{
  nixpkgs.allowBroken = true;
}

or if you are scared of that for whatever reason use

{
  boot.kernelPackages = linuxPackages_latest.extend (final: prev: {
    zfs = prev.zfs.overrideAttrs (_: { meta.broken = false; });
  });
}

@hmenke
Copy link
Member

hmenke commented Dec 13, 2021

See also #150580
Please let me know what you think.

@TredwellGit
Copy link
Member

#150923

@fpletz
Copy link
Member

fpletz commented Dec 17, 2021

Fixed by #150923.

@fpletz fpletz closed this as completed Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants