summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2015-02-19 15:30:46 +0200
committerRiku Voipio <riku.voipio@linaro.org>2015-02-19 15:30:46 +0200
commitcdcc50233d44c76e68cbfb406b9a99180ed4a563 (patch)
treeaa33d973a1eff98fbfa8bb402b40b254963a96f0
parente18cb3aabac2bf57b7040f7452361d214c7fbe80 (diff)
downloadxen-ci-cdcc50233d44c76e68cbfb406b9a99180ed4a563.tar.gz
Error out on failures
-rwxr-xr-xmakelavaimg2
-rwxr-xr-xmakelavanfs1
2 files changed, 3 insertions, 0 deletions
diff --git a/makelavaimg b/makelavaimg
index d262c7e..f07d7e4 100755
--- a/makelavaimg
+++ b/makelavaimg
@@ -145,6 +145,7 @@ sudo cp /usr/bin/qemu-arm-static $MOUNT/usr/bin
sudo chroot $MOUNT apt-get update
sudo chroot $MOUNT apt-get install xen-system-armhf
sudo cp $MOUNT/boot/xen-4.6-armhf $BOOTMOUNT/xen
+cp $BOOTMOUNT/xen xen-binary
sudo rm $MOUNT/usr/bin/qemu-arm-static
sudo umount $MOUNT
sudo umount $BOOTMOUNT
@@ -152,6 +153,7 @@ sudo umount $BOOTMOUNT
#tidy up mapper devices
sudo kpartx -d ${image}
set -e
+md5sum xen-binary
#compress the image
gzip -9 ${image}
diff --git a/makelavanfs b/makelavanfs
index 59a1380..8009cfc 100755
--- a/makelavanfs
+++ b/makelavanfs
@@ -31,6 +31,7 @@ if [ $? -ne 0 ]; then
exit 1
fi
+set -e
MOUNT=binary
sudo rm -rf $MOUNT ${image} ${image}.xz
sudo tar xaf ${ROOTFS_BUILD_FILENAME}