Kernel module aggregator: Use kmod instead of module-init-tools
This commit is contained in:
parent
d9a4706f73
commit
9845e6ec5c
@ -1,4 +1,4 @@
|
|||||||
{stdenv, module_init_tools, modules, buildEnv}:
|
{ stdenv, kmod, modules, buildEnv }:
|
||||||
|
|
||||||
buildEnv {
|
buildEnv {
|
||||||
name = "kernel-modules";
|
name = "kernel-modules";
|
||||||
@ -21,7 +21,7 @@ buildEnv {
|
|||||||
# kernel version number, otherwise depmod will use `uname -r'.
|
# kernel version number, otherwise depmod will use `uname -r'.
|
||||||
if test -w $out/lib/modules/$kernelVersion; then
|
if test -w $out/lib/modules/$kernelVersion; then
|
||||||
rm -f $out/lib/modules/$kernelVersion/modules.*
|
rm -f $out/lib/modules/$kernelVersion/modules.*
|
||||||
MODULE_DIR=$out/lib/modules/ ${module_init_tools}/sbin/depmod -a $kernelVersion
|
${kmod}/sbin/depmod -b $out -a $kernelVersion
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
}
|
}
|
@ -6647,8 +6647,8 @@ let
|
|||||||
mountall = callPackage ../os-specific/linux/mountall { };
|
mountall = callPackage ../os-specific/linux/mountall { };
|
||||||
|
|
||||||
aggregateModules = modules:
|
aggregateModules = modules:
|
||||||
import ../os-specific/linux/module-init-tools/aggregator.nix {
|
callPackage ../os-specific/linux/kmod/aggregator.nix {
|
||||||
inherit stdenv module_init_tools modules buildEnv;
|
inherit modules;
|
||||||
};
|
};
|
||||||
|
|
||||||
multipath_tools = callPackage ../os-specific/linux/multipath-tools { };
|
multipath_tools = callPackage ../os-specific/linux/multipath-tools { };
|
||||||
|
Loading…
Reference in New Issue
Block a user