From 240a2de945094f525d7a80bdc257e75dcc92f917 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Tue, 23 Aug 2005 23:07:49 +0000 Subject: [PATCH] - make /lib/modules/- - 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 --- fill-disk.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fill-disk.sh b/fill-disk.sh index 5231fa7f97fc..a562fbda5726 100755 --- a/fill-disk.sh +++ b/fill-disk.sh @@ -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.