From b37c1de0a21c3d898cc48dbea1a6f91f70cad338 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Thu, 31 Jan 2008 21:55:38 +0000 Subject: [PATCH] Fix enabling switching to kernels not already running (depmod uses uname-r as default to look for modules) svn path=/nixpkgs/trunk/; revision=10441 --- pkgs/os-specific/linux/module-init-tools/aggregator.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/module-init-tools/aggregator.nix b/pkgs/os-specific/linux/module-init-tools/aggregator.nix index ed30be250d23..76111eacfd2c 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