From d9d8572224454d808306d8954aa04aefbd38e750 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 9 Apr 2013 17:40:43 +0200 Subject: [PATCH] create tar archive containing everything for gentoo Signed-off-by: Holger Levsen --- 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 3bdf893..dd5aa6d 100755 --- a/extract_storage_kernel+modules.sh +++ b/extract_storage_kernel+modules.sh @@ -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 -- 2.39.5