Fix enabling switching to kernels not already running (depmod uses uname-r as default to look for modules)

svn path=/nixpkgs/trunk/; revision=10441
This commit is contained in:
Marc Weber 2008-01-31 21:55:38 +00:00
parent aa83977d83
commit b37c1de0a2

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