mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
kmod: switch the priority of module dirs
make "/run/booted-system/kernel-modules" be searched first Fixes https://github.com/NixOS/nixpkgs/issues/146383 modprobe: ERROR: could not insert 'zram': Invalid argument
This commit is contained in:
parent
a78dd785b2
commit
453968c01a
@ -4,7 +4,7 @@
|
||||
}:
|
||||
|
||||
let
|
||||
systems = [ "/run/current-system/kernel-modules" "/run/booted-system/kernel-modules" "" ];
|
||||
systems = [ "/run/booted-system/kernel-modules" "/run/current-system/kernel-modules" "" ];
|
||||
modulesDirs = lib.concatMapStringsSep ":" (x: "${x}/lib/modules") systems;
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
|
Loading…
Reference in New Issue
Block a user