From 0c414d027b6de630313788c34c044cfb4982d5c3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 14 Dec 2012 10:47:54 +0100 Subject: [PATCH] fixup: fix KERNEL_VERSION parsing --- extract_storage_kernel+modules.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extract_storage_kernel+modules.sh b/extract_storage_kernel+modules.sh index 0f2771f..3bdf893 100755 --- a/extract_storage_kernel+modules.sh +++ b/extract_storage_kernel+modules.sh @@ -41,18 +41,18 @@ 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/ -/bin/tar -cJvf $TARGET_DIR/modules-${KERNEL_VERSION}.tar.xz . +/bin/tar -cJvf $TARGET_DIR/modules-###{KERNEL_VERSION}.tar.xz . echo "Job : $JOB_NAME" > $TARGET_DIR/sources.txt echo "Build-Nr.: $BUILD_NUMBER" >> $TARGET_DIR/sources.txt echo "URL : http://jenkins/job/$JOB_NAME/$BUILD_NUMBER/" >> $TARGET_DIR/sources.txt -echo "Kernel: : $KERNEL_VERSION" >> $TARGET_DIR/sources.txt +echo "Kernel: : ###KERNEL_VERSION" >> $TARGET_DIR/sources.txt echo >> $TARGET_DIR/sources.txt 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 +sed -i -s "s|###|$|g" $BUILD_SCRIPT # # build liveboot -- 2.39.5