3
0
Fork 0
forked from mirrors/nixpkgs

Kernel module aggregator: Use kmod instead of module-init-tools

This commit is contained in:
Eelco Dolstra 2013-08-09 17:55:45 +02:00
parent d9a4706f73
commit 9845e6ec5c
2 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{stdenv, module_init_tools, modules, buildEnv}:
{ stdenv, kmod, modules, buildEnv }:
buildEnv {
name = "kernel-modules";
@ -21,7 +21,7 @@ buildEnv {
# kernel version number, otherwise depmod will use `uname -r'.
if test -w $out/lib/modules/$kernelVersion; then
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
'';
}

View file

@ -6647,8 +6647,8 @@ let
mountall = callPackage ../os-specific/linux/mountall { };
aggregateModules = modules:
import ../os-specific/linux/module-init-tools/aggregator.nix {
inherit stdenv module_init_tools modules buildEnv;
callPackage ../os-specific/linux/kmod/aggregator.nix {
inherit modules;
};
multipath_tools = callPackage ../os-specific/linux/multipath-tools { };