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

latest kernel where a set of kernel modules isn't broken #122606

Closed
Atemu opened this issue May 11, 2021 · 3 comments
Closed

latest kernel where a set of kernel modules isn't broken #122606

Atemu opened this issue May 11, 2021 · 3 comments

Comments

@Atemu
Copy link
Member

Atemu commented May 11, 2021

Issue description

The issue of automatically selecting the latest kernel where ZFS is supported came up during the 5.12 init, linux_latest bump and probably many times before.

A linux_latest_zfs package has been suggested but it has rightly been pointed out that this is not an ideal solution as it only covers one module, not the n! combinations of modules one could want to use.

An ideal solution to this issue would be a function which takes a list of modules and returns the newest linuxPackages where none of those modules are broken.

You could then use that for your boot.kernelPackages and, ideally, plug your boot.kernelModules into it.

Actually, if such a function existed, it might even make a good default in combination with new NixOS option to control whether non-lts kernels should be eligible for selection (off by default).

Needed for this are:

  • A set of all linuxPackages variants
  • All broken modules to be marked as such on the correct versions.
@xaverdh
Copy link
Contributor

xaverdh commented May 17, 2021

I opened #123401 with some initial work

@jonringer
Copy link
Contributor

All broken modules to be marked as such on the correct versions.

This overlaps with release goals, so I think we should strive for this regardless.

@Atemu
Copy link
Member Author

Atemu commented Apr 21, 2024

This is not something we should have as it would require a SAT solver like a traditional package manager.

If you need OOT modules, you should use an LTS kernel anyways and do your research which one is supported by the modules you need.

If modules properly mark their supported version range, broken combinations should quickly abort eval which should make for a quick enough feedback cycle.

@Atemu Atemu closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2024
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

4 participants