summary refs log tree commit diff
path: root/pkgs/os-specific/linux/module-init-tools/aggregator.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/linux/module-init-tools/aggregator.nix')
-rw-r--r--pkgs/os-specific/linux/module-init-tools/aggregator.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/module-init-tools/aggregator.nix b/pkgs/os-specific/linux/module-init-tools/aggregator.nix
index ed30be250d2..76111eacfd2 100644
--- a/pkgs/os-specific/linux/module-init-tools/aggregator.nix
+++ b/pkgs/os-specific/linux/module-init-tools/aggregator.nix
@@ -18,7 +18,8 @@ done
 rm -rf nix-support
 cd lib/modules/
 rm */modules.*
-MODULE_DIR=$PWD/ depmod -a *
+#  linux-* will pass the new kernel version to depmod to take rather than `uname -r` (see man page)
+MODULE_DIR=$PWD/ depmod -a $(basename lib/modules/2.*)
 cd $out/
 '') [minInit addInputs defEnsureDir];
 in