imagebuild: coreos: Build sha256 checksum files

Commit 3c2772650e ("imagebuild: tinyipa: Build sha256 checksum files")
extended the build process to generate sha256 checksum files for all
the tinyIPA files that are uploaded to mirrors. CoreOS builds are also
uploaded to mirrors so we need to build similar sha256 checksum files
as well.

Change-Id: I5de389f14001b6957e4b0aca772edf0e93b35af8
This commit is contained in:
Markos Chandras 2017-03-02 14:42:39 +00:00
parent a7808d0f4d
commit 4f938e8eb8

View File

@ -36,8 +36,20 @@ else
cp $BUILD_DIR/coreos_production_pxe.vmlinuz $BUILD_DIR/coreos_production_pxe-$BRANCH_PATH.vmlinuz
fi
# Generate checksum files
pushd $BUILD_DIR > /dev/null
for x in *.vmlinuz *.cpio.gz; do
sha256sum $x > $x.sha256
done
popd > /dev/null
tar czf ipa-coreos-$BRANCH_PATH.tar.gz $BUILD_DIR/coreos_production_pxe_image-oem-$BRANCH_PATH.cpio.gz $BUILD_DIR/coreos_production_pxe-$BRANCH_PATH.vmlinuz
if [ "$BRANCH_PATH" = "master" ]; then
# again, publish with and without the branch on master for historical reasons
cp ipa-coreos-$BRANCH_PATH.tar.gz ipa-coreos.tar.gz
fi
# Generate checksum files
for x in *.tar.gz; do
sha256sum $x > $x.sha256
done