hellais / TAILS-OSX

Contains instructions and scripts to create a TAILS live cd that will boot on OSX without any additional software installed (no REFIT, etc.)
151 stars 45 forks source link

Download iso to a tmp location, move to tails.iso once complete #34

Closed runasand closed 10 years ago

runasand commented 10 years ago

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.

pzp1997 commented 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?

runasand commented 10 years ago

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.

hellais commented 10 years ago

Yeah this is a good idea. Thanks for the patch @runasand