From 053ea5ebe6f144b9e13f74e5ce466162f6cc8754 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sun, 10 Feb 2008 17:35:30 +0000 Subject: [PATCH] Fix enabling switching to kernels not already running (depmod uses uname-r as default to look for modules) svn path=/nixpkgs/branches/stdenv-updates/; revision=10572 --- 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