From 64aca279d4915a9a3115ae16c65a945f2d9a9d1e Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 5 Dec 2012 14:52:14 +0100 Subject: [PATCH] include kernel_version in modules.tar.xz filenname --- 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 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 -- 2.39.5