https://bugzilla.redhat.com/show_bug.cgi?id=1266693
Toby Ovod-Everett toby@ovod-everett.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |toby@ovod-everett.org
--- Comment #1 from Toby Ovod-Everett toby@ovod-everett.org --- In addition, the code in the documentation does not work on files larger than 2 GB (plus it reads the entire file into memory). http://stackoverflow.com/questions/10521061/how-to-get-an-md5-checksum-in-po... (it should be davor's comment) suggests another approach that will stream the data through the checksum.
Substituting that logic into the approach in the documentation, one gets:
$download_checksum = [System.BitConverter]::ToString($sha256.ComputeHash([System.IO.File]::Open("$PWD$image", [System.IO.Filemode]::Open, [System.IO.FileAccess]::Read))) -replace '-', ''
Also, if anyone does update the documentation, they might as well update the filenames to 23!