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

Meta issue about kernel configuration #69014

Open
5 tasks
teto opened this issue Sep 18, 2019 · 3 comments
Open
5 tasks

Meta issue about kernel configuration #69014

teto opened this issue Sep 18, 2019 · 3 comments
Labels
0.kind: enhancement 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: kernel

Comments

@teto
Copy link
Member

teto commented Sep 18, 2019

This issue lists steps I intend to follow to improve kernel integration into nixos.
Mainly I would like nixpkgs to be able to mark kernel configuration entries as dependencies.
For instance enabling bcc, should enable CONFIG_BPF or at least check that it is available.
Ideally I would like to make it easier to compose/override kernel configurations as the current process
is quite tricky (you gotta choose carefully between override/overrideAttrs).

Related issues:
#41103
#2296
#20187

@edolstra
Copy link
Member

The problem with this is that there is no way to validate the kernel feature requirements specified by modules. For example, if a module requires BPF but doesn't declare it, it will still work correctly if BPF is enabled by some other module.

@edolstra edolstra changed the title Meta issue Meta issue about kernel configuration Meta issue about kernel configuration Sep 18, 2019
@teto
Copy link
Member Author

teto commented Sep 19, 2019

One of my propositions is to tie the kernel requirement to the package (via meta.requiredKernelConfiguration for instance). Several packages can't be run without the proper kernel features (openvswitch/bpf/perf/mininet/powertop...).

Regarding your comment, if you just install this specific module and it doesn't declare its (required) dependency on BPF then you are screwed (in the absence of the other module) so you better declare it :p

@teto teto mentioned this issue Oct 1, 2019
10 tasks
@stale
Copy link

stale bot commented Jun 1, 2020

Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the
    related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on
    irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: enhancement 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: kernel
Projects
None yet
Development

No branches or pull requests

2 participants