-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootiso should automatically detect shaX and md5 files to check sums against ISO #16
Comments
I've made an implementation which looks in the directory of the ISO for the files: Is that everything? |
@SibrenVasse Thanks Sibren! I think it's a de facto standard to use $filename.md5 and eventually add a flag such as EDIT: I don't know other popular hash algorithms in this use case, but we can of course stay open to extension in the future |
I also wanted to support hashfiles provided by distros. Debian does it like this: Thus far, I've got these flags: Maybe --hash-file would be a nice flag name for the extra file to check? |
Definitly. To understand your implementation schedule, what do you plan to do when a check fails while he hasn't used any related flag; prompt the user with an error? The issue with a md5sums.txt file hanging in a directory is that we have no clue it is related to the ISO... So I am reluctant to automate anything that isn't predictable. I would eventually accept the following flows : Flow I :
|
Well the hash files contain the filenames along with the hashes. So we can check if a md5sums* file is relevant to the iso, and only fail if the filename is in there. So as I've currently implemented it: Flow I : $filename.$hash exists
Flow II : hash candidate exists (md5sums*)
Flow III, --hash-file set
Flow IV,
|
Also about the dependencies: |
Yes you are absolutely right (guess I've been lazy enough to never open a md5sum file) ; I'm good with these flows.
yes, please append commandDependencies and commandPackages lists, mapping all the aforementioned utilities to |
This commit is a rework from @SibrenVasse pull request #41 - fix a minor bug where ISO check was run twice, before and after sudo - disable automatic ISO hash check with `--no-hash-check` flag - exit when hash fails with `--force-hash-check` flag - explicitly set a hash file with `--hash-file <file>` flag
No description provided.
The text was updated successfully, but these errors were encountered: