summary refs log tree commit diff
path: root/nixos/modules/services/hardware/udev.nix
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2023-06-06 19:39:38 +0200
committerrnhmjoj <rnhmjoj@inventati.org>2023-06-06 19:42:18 +0200
commitdbcd187add9ff7a11398f9a58e9ec302eb0fc264 (patch)
tree21389a02f11de1be83e0b4df1505bba22170ff34 /nixos/modules/services/hardware/udev.nix
parentc651ca23fd425765b28990478b0d1fe93692fde3 (diff)
downloadnixpkgs-dbcd187add9ff7a11398f9a58e9ec302eb0fc264.tar
nixpkgs-dbcd187add9ff7a11398f9a58e9ec302eb0fc264.tar.gz
nixpkgs-dbcd187add9ff7a11398f9a58e9ec302eb0fc264.tar.bz2
nixpkgs-dbcd187add9ff7a11398f9a58e9ec302eb0fc264.tar.lz
nixpkgs-dbcd187add9ff7a11398f9a58e9ec302eb0fc264.tar.xz
nixpkgs-dbcd187add9ff7a11398f9a58e9ec302eb0fc264.tar.zst
nixpkgs-dbcd187add9ff7a11398f9a58e9ec302eb0fc264.zip
nixos/udev: silence harmless warnings
`udevRulesFor` generates a lot of warnings like:

  substituteStream(): WARNING: pattern '"/sbin/modprobe' doesn't match anything in file '/nix/store/.../95-dm-notify.rules'

due to the (preemptive) substitution of common paths in the default
udev rules. In this case a file having no matches is not unepected
and poses no issue at all.
Diffstat (limited to 'nixos/modules/services/hardware/udev.nix')
-rw-r--r--nixos/modules/services/hardware/udev.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/udev.nix b/nixos/modules/services/hardware/udev.nix
index 94406b60b29..e3451e1f6c7 100644
--- a/nixos/modules/services/hardware/udev.nix
+++ b/nixos/modules/services/hardware/udev.nix
@@ -72,7 +72,7 @@ let
           --replace \"/sbin/blkid \"${pkgs.util-linux}/sbin/blkid \
           --replace \"/bin/mount \"${pkgs.util-linux}/bin/mount \
           --replace /usr/bin/readlink ${pkgs.coreutils}/bin/readlink \
-          --replace /usr/bin/basename ${pkgs.coreutils}/bin/basename
+          --replace /usr/bin/basename ${pkgs.coreutils}/bin/basename 2>/dev/null
       ${optionalString (initrdBin != null) ''
         substituteInPlace $i --replace '/run/current-system/systemd' "${removeSuffix "/bin" initrdBin}"
       ''}