mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/mkimage: create .sha256 files of images
Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
6d9031b932
commit
71b9eacbc6
@ -328,6 +328,10 @@ fi # bootloader
|
||||
$PROJECT_DIR/$PROJECT/config/ovf.template > ${DISK_BASENAME}.ovf
|
||||
# combine ovf and vmdk into official ova
|
||||
tar -C $TARGET_IMG -cf ${DISK_BASENAME}.ova ${IMAGE_NAME}.ovf ${IMAGE_NAME}.vmdk
|
||||
# create sha256 checksum of ova image
|
||||
( cd $TARGET_IMG
|
||||
sha256sum ${IMAGE_NAME}.ova > ${IMAGE_NAME}.ova.sha256
|
||||
)
|
||||
echo "image: cleaning up..."
|
||||
# remove tmp $DISK, vmdk and ovf
|
||||
rm ${DISK_BASENAME}.tmp ${DISK_BASENAME}.vmdk ${DISK_BASENAME}.ovf
|
||||
@ -343,6 +347,10 @@ fi # bootloader
|
||||
if [ -n "$SUDO_USER" ] ; then
|
||||
chown $SUDO_USER: $DISK.gz
|
||||
fi
|
||||
# create sha256 checksum of image
|
||||
( cd $TARGET_IMG
|
||||
sha256sum $(basename $DISK).gz > $(basename $DISK).gz.sha256
|
||||
)
|
||||
|
||||
# cleanup
|
||||
cleanup
|
||||
|
Loading…
x
Reference in New Issue
Block a user