Commit e2090090 authored by Guido Gunther's avatar Guido Gunther
Browse files

Fail when we don't find an installation report

vmdebootstrap sometimes doesn't correctly evaluate the customize scripts
exit status. Make sure we don't accidentailly pass on failed image
builds by checking that the installation report is there as well.
parent f6efe088
......@@ -128,6 +128,7 @@ echo "Installing extra board specific packages ${board_packages}"
mkdir -p tmp/ files/
echo -n > files/meta.yml
rm -f "./tmp/${pureos_board}-report.log"
if [ "${build_type}" == "latest" ]; then
......@@ -202,6 +203,8 @@ if [ "${arch}" == "arm64" ]; then
sudo losetup -d "${loop}"
[ -f "./tmp/${pureos_board}-report.log" ] || { echo "No install report found."; exit 1; }
if [ "${want_qcow2}" == 1 ]; then
qcow2="$(basename "${bootimg}" .img)".qcow2
qemu-img convert -f raw -O qcow2 "${bootimg}" "${qcow2}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment