From 134f69349490e0cc8246b25dbff8e8a90651a7fc Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 14 Dec 2012 10:37:46 +0100 Subject: [PATCH] fix KERNEL_VERSION parsing --- extract_storage_kernel+modules.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extract_storage_kernel+modules.sh b/extract_storage_kernel+modules.sh index 2cbb988..bbc94bd 100755 --- a/extract_storage_kernel+modules.sh +++ b/extract_storage_kernel+modules.sh @@ -37,7 +37,7 @@ apt-get update apt-get install -y grub2 apt-get -y install profitbricks-andbd-modules-storage profitbricks-linux-image-storage || true mkdir -p $TARGET_DIR -export KERNEL_VERSION=$(ls /boot/vmlinu* | cut -d "-" -f2-) +export KERNEL_VERSION=###(ls /boot/vmlinu* | cut -d "-" -f2-) cp -v /boot/vmlinu* $TARGET_DIR/ cp -v /boot/config* $TARGET_DIR/ cd /lib/modules/*storage/ @@ -51,6 +51,8 @@ apt-cache show profitbricks-linux-image-storage >> $TARGET_DIR/sources.txt apt-cache show profitbricks-andbd-modules-storage >> $TARGET_DIR/sources.txt EOF chmod +x $BUILD_SCRIPT +# turn the shell call back into a shell call +sed -i -s "s|###|$|" $BUILD_SCRIPT # # build liveboot -- 2.39.5