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
This commit is contained in:
Yury G. Kudryashov 2008-02-10 17:35:30 +00:00
parent 8a3676ebf6
commit 053ea5ebe6

View File

@ -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