- make /lib/modules/<hash-part>-<kernelversion>

- make symlinks to "build" and "kernel" in those directories
- copy all modules.* files (like modules.dep). This is done so future add-on
modules can modify these files instead of the ones in the store...

Since the Nix hash is embedded in the path, this can still be considered
safe and it makes modprobe work automagically.

svn path=/nixu/trunk/; revision=3674
This commit is contained in:
Armijn Hemel 2005-08-23 23:07:49 +00:00
parent 52bc4c5681
commit 240a2de945

View File

@ -315,7 +315,14 @@ if echo "$kernelhash" | grep -q '^[a-z0-9]\{32\}-'; then
kernelhash=$(echo "$kernelhash" | cut -c -32)
fi
echo "kernelthing" $strippedName-$kernelhash
version=$strippedName-$kernelhash
make_dir 0755 /lib/modules/$version
ln -s @kernel@/lib/modules/$version/build $root/lib/modules/$version/build
ln -s @kernel@/lib/modules/$version/kernel $root/lib/modules/$version/kernel
cp @kernel@/lib/modules/$version/modules.* $root/lib/modules/$version
chmod 644 $root/lib/modules/$version/modules.*
###
### Do funky stuff with grub here.