From: Holger Levsen Date: Fri, 14 Dec 2012 09:37:46 +0000 (+0100) Subject: fix KERNEL_VERSION parsing X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=134f69349490e0cc8246b25dbff8e8a90651a7fc;p=profitbricks%2Fjenkins-build-scripts.git fix KERNEL_VERSION parsing --- 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