]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
create tar archive containing everything for gentoo
authorHolger Levsen <holger@layer-acht.org>
Tue, 9 Apr 2013 15:40:43 +0000 (17:40 +0200)
committerHolger Levsen <holger@layer-acht.org>
Tue, 9 Apr 2013 15:40:43 +0000 (17:40 +0200)
Signed-off-by: Holger Levsen <holger@layer-acht.org>
extract_storage_kernel+modules.sh

index 3bdf8932b0cc8f40cc1e0e8b82476274e7e86b07..dd5aa6dbc8fb4aefcdbdf8fe028eecce3c32464c 100755 (executable)
@@ -38,6 +38,7 @@ 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 GENTOO_KERNEL_VERSION="###(ls /boot/vmlinu* | cut -d "-" -f2).$BUILD_NUMBER"
 cp -v /boot/vmlinu* $TARGET_DIR/
 cp -v /boot/config* $TARGET_DIR/
 cd /lib/modules/*storage/
@@ -49,13 +50,14 @@ 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
+/bin/tar -cJvf $TARGET_BASE/$TARGET_NAME/linux-storage_###{GENTOO_KERNEL_VERSION}.tar.xz -C $TARGET_DIR .
 EOF
 chmod +x $BUILD_SCRIPT
 # turn the shell call back into a shell call
 sed -i -s "s|###|$|g" $BUILD_SCRIPT
 
 #
-# build liveboot
+# run $BUILD_SCRIPT in chroot environment
 #
 sudo pbuilder --execute --bindmounts $TARGET_BASE -- $BUILD_SCRIPT
 rm $BUILD_SCRIPT