get the kernel versioning right. Right now it's only printed, but it should be used for creating the /lib/modules/<kernel-version> stuff right

svn path=/nixu/trunk/; revision=3673
This commit is contained in:
Armijn Hemel 2005-08-23 21:00:45 +00:00
parent 9c75e2cb14
commit 52bc4c5681

View file

@ -307,11 +307,15 @@ echo "root::12757:0:99999:7:::" > $root/etc/shadow
###
strippedName=$(basename @kernel@);
if echo "$strippedName" | grep -q '^[a-z0-9]\{32\}-'; then
strippedName=$(echo "$strippedName" | cut -c34-)
strippedName=$(echo "$strippedName" | cut -c34- | cut -c 7-)
fi
echo "stripped" $strippedName
kernelhash=$(basename @kernel@);
if echo "$kernelhash" | grep -q '^[a-z0-9]\{32\}-'; then
kernelhash=$(echo "$kernelhash" | cut -c -32)
fi
echo "kernelthing" $strippedName-$kernelhash
###
### Do funky stuff with grub here.