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:
parent
aa83977d83
commit
b37c1de0a2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue