Replaced the old MD5 method with checkmd5. #61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This replaces the old method of checking MD5 sums with a new utility, checkmd5. This offers a number of advantages compared to the previous md5sum method.
First, it provides progress indication (percentage) and allows the user to cancel the check, whereas the previous method had no way of cancelling a check or knowing its progress.
Also, the checkmd5 utility now stores the log in /var/log/live/checkmd5.log which is machine-readable, non-translated and contains the following:
Any other applications (eg. the installer, or perhaps even QSI) can use this log, and even tack its contents to its own logs so that those who provide support can tell if the checks passed or failed.
Previously with the md5sum method, there was no logging or any means of checking whether the integrity check passed, failed, or if the user chose to skip the check.