diff options
author | Florian Klink <flokli@flokli.de> | 2023-12-15 13:57:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 13:57:35 +0200 |
commit | f4de47d49e16bca128c593aff7f83a40950795c7 (patch) | |
tree | 737cd166a5e34e7d20c0dc0fe8027f82bb1e1442 /nixos | |
parent | ee1148c372368108eead87063b2a43bf014e03dd (diff) | |
parent | 74461420f9412c02dff402b7701e303ba852c4cf (diff) |
Merge pull request #274264 from flokli/udev-rules-allow-bin-sh
nixos/udev: allow /bin/sh in udev rules
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/hardware/udev.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/udev.nix b/nixos/modules/services/hardware/udev.nix index 311f60795bae1..670b9087f1107 100644 --- a/nixos/modules/services/hardware/udev.nix +++ b/nixos/modules/services/hardware/udev.nix @@ -112,7 +112,8 @@ let echo "OK" filesToFixup="$(for i in "$out"/*; do - grep -l '\B\(/usr\)\?/s\?bin' "$i" || : + # list all files referring to (/usr)/bin paths, but allow references to /bin/sh. + grep -P -l '\B(?!\/bin\/sh\b)(\/usr)?\/bin(?:\/.*)?' "$i" || : done)" if [ -n "$filesToFixup" ]; then |