From: Holger Levsen Date: Wed, 5 Dec 2012 13:52:14 +0000 (+0100) Subject: include kernel_version in modules.tar.xz filenname X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=64aca279d4915a9a3115ae16c65a945f2d9a9d1e;p=profitbricks%2Fjenkins-build-scripts.git include kernel_version in modules.tar.xz filenname --- diff --git a/extract_storage_kernel+modules.sh b/extract_storage_kernel+modules.sh index 1bfccf6..2cbb988 100755 --- a/extract_storage_kernel+modules.sh +++ b/extract_storage_kernel+modules.sh @@ -37,13 +37,15 @@ 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-) cp -v /boot/vmlinu* $TARGET_DIR/ cp -v /boot/config* $TARGET_DIR/ cd /lib/modules/*storage/ -/bin/tar -cJvf $TARGET_DIR/modules.tar.xz . +/bin/tar -cJvf $TARGET_DIR/modules-${KERNEL_VERSION}.tar.xz . echo "Job : $JOBNAME" > $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 >> $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