shasum the image and compressed image...

This commit is contained in:
Steev Klimaszewski
2022-07-15 10:46:55 -05:00
committed by Steev Klimaszewski
parent 4e9179d5c3
commit cfad54174f

View File

@@ -34,9 +34,23 @@ e2fsck -y -f "${rootp}"
status "Remove loop devices"
losetup -d "${loopdevice}"
# Create sha256sum file of the UNCOMPRESSED image file
log "Generate sha256sum: $(tput sgr0) ($img)" green
cd "${image_dir}"
shasum -a 256 "${image_name}.img" > "${image_name}.img.sha256sum"
cd "${repo_dir}"
# Compress image compilation
compress_img
# Create sha256sum file of the COMPRESSED image file
if [ -f "${image_dir}/${image_name}.img.$compress" ]; then
log "Generate sha256sum: $(tput sgr0) ($img.$compress)" green
cd "${image_dir}"
shasum -a 256 "${image_name}.img.$compress" > "${image_name}.img.$compress.sha256sum"
cd "${repo_dir}"
fi
# Clean up all the temporary build stuff and remove the directories
clean_build