]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
extract_storage_kernel+modules.sh: Ignore missing /boot/config* file
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 19 Nov 2014 14:40:46 +0000 (15:40 +0100)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 19 Nov 2014 14:40:46 +0000 (15:40 +0100)
extract_storage_kernel+modules.sh

index f3b83494ecc956a1b9c05d34f218e01414262762..4d5cb66461248148b368bcefbf6508bc16e9c369 100755 (executable)
@@ -99,7 +99,7 @@ mkdir -p $TARGET_DIR
 export KERNEL_VERSION=###(ls /boot/vmlinu* | cut -d "-" -f2-)
 export GENTOO_KERNEL_VERSION="###(ls /boot/vmlinu* | cut -d "-" -f2).$BUILD_NUMBER"
 cp -v /boot/vmlinu* $TARGET_DIR/
-cp -v /boot/config* $TARGET_DIR/
+cp -v /boot/config* $TARGET_DIR/ || true
 cd /lib/modules/###{KERNEL_VERSION}
 /bin/tar -cJvf $TARGET_DIR/modules-###{KERNEL_VERSION}.tar.xz .
 echo "Job      : $JOB_NAME" > $TARGET_DIR/sources.txt