nixos/udev: verify udev rules using udevadm#404323
Conversation
477b79b to
bd63d84
Compare
bd63d84 to
f5c395e
Compare
517e7c9 to
29daeb6
Compare
|
I messed up with extracting the other fixes, sorry for the pings. |
2fc7f5f to
ff89fcf
Compare
|
Github is now returning a 500 when trying to submit any review... Anyways: I'd love to approve once github cooperates. Message i was about to submit: |
|
I wonder if we should wait until after branch off though, since this is a potentially breaking change. |
ff89fcf to
aa7b078
Compare
aa7b078 to
1278d56
Compare
RossComputerGuy
left a comment
There was a problem hiding this comment.
LGTM, let's see what @leona-ya thinks before merging.
|
this verification needs to be done at package level, for any packages that ship udev rules. so failures can be caught early. otherwise we will see packages building fine, but when someone tries to use it, it blows up in |
|
I'll have a poke writing |
|
Opened #407629 |
Usage: ```nix nativeBuildInputs = [ udevCheckHook ]; doInstallCheck = true; ``` This hook executes `udevadm verify --resolve-names=never --no-style` on all outputs that have `/etc/udev/rules.d`. This us a logical part of NixOS#404323 to check packages that supply udev rules. Note this hook introduces a dependency on `systemdMinimal`, meaning this can't check systemdMinimal or its dependencies.
Usage: ```nix nativeBuildInputs = [ udevCheckHook ]; doInstallCheck = true; ``` This hook executes `udevadm verify --resolve-names=never --no-style` on all outputs that have `/etc/udev/rules.d`. This us a logical part of #404323 to check packages that supply udev rules. Note this hook introduces a dependency on `systemdMinimal`, meaning this can't check systemdMinimal or its dependencies. (cherry picked from commit b3bdbf4)
|
Got reverted in #405717 but we should definitely bring it back. |
Things done
I have splitted the fixes for different packages out into different PRs that should be merged first:
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.