intelligent-agent / Reflash

Flasher image for Refactor distro for use with Recore 3D printer board
GNU Affero General Public License v3.0
1 stars 0 forks source link

Add md5/sha check on the downloaded image to verify integrity after a download #3

Closed eliasbakken closed 1 year ago

eliasbakken commented 1 year ago

There should be a hash present in the images from Github. As for uploaded images and for github images as well, it should be possible to check the integrity of the file using: xz -t image.img.xz

eliasbakken commented 1 year ago

xz -t is way too slow (5 minutes on a 1.3 GB file). Instead, xz -l faults if the file has been cut off. This is so fast that it can be done as part of the listing of local files.