From 52bc4c5681107fcf54978f1df4e26b1470422961 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Tue, 23 Aug 2005 21:00:45 +0000 Subject: [PATCH] get the kernel versioning right. Right now it's only printed, but it should be used for creating the /lib/modules/ stuff right svn path=/nixu/trunk/; revision=3673 --- fill-disk.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fill-disk.sh b/fill-disk.sh index 084295c4da8..5231fa7f97f 100755 --- a/fill-disk.sh +++ b/fill-disk.sh @@ -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.