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:
parent
9c75e2cb14
commit
52bc4c5681
1 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue