Closed runasand closed 10 years ago
Good idea. I had to manually delete the partially downloaded iso, which isn't terrible, but since you figured out such a simple fix, we might as well implement it. My only gripe is that moving the file will slow down the process by about a minute (depending on your setup). What about if we check the size of the iso if the signature verification fails, and delete and re-download if it's not the right size?
One extra minute is nothing compared to the ten or fifteen or twenty minutes you spend waiting for the iso to download. Also, I'm not sure we should be hardcoding the file size of the iso in the script.
Yeah this is a good idea. Thanks for the patch @runasand
If the network connection drops before the download of the Tails iso is complete, the script will fail to re-download the file and the signature verification will fail. I suggest that the file is downloaded to a temporary location and moved to data/tails.iso once the download is complete.