Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560946 - add isoroot verify feature to catalyst
Summary: add isoroot verify feature to catalyst
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-09-20 19:50 UTC by Rick Farina (Zero_Chaos)
Modified: 2015-09-23 18:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
isoroot verify feature which is already in genkernel (isoroot_checksum.patch,4.75 KB, patch)
2015-09-20 19:50 UTC, Rick Farina (Zero_Chaos)
Details | Diff
updated patch (isoroot_checksum.patch,5.71 KB, patch)
2015-09-21 02:18 UTC, Rick Farina (Zero_Chaos)
Details | Diff
moar conditionals (isoroot_checksum.patch,5.86 KB, patch)
2015-09-21 13:04 UTC, Rick Farina (Zero_Chaos)
Details | Diff
new function to reduce copy pasta (isoroot_checksum.patch,6.78 KB, patch)
2015-09-21 13:53 UTC, Rick Farina (Zero_Chaos)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Farina (Zero_Chaos) gentoo-dev 2015-09-20 19:50:25 UTC
Created attachment 412368 [details, diff]
isoroot verify feature which is already in genkernel

I will document how this works once we agree on it, for right now if livecd/verify is set to *anything* it will make the checksums.  I think that is fine personally, and it keeps the code much simpler than trying to handle all the possible negative values like "no|No|n|NO|false|False|FALSE|f" etc.

please ACK or make suggestions.
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2015-09-21 02:18:15 UTC
Created attachment 412378 [details, diff]
updated patch

updated patch to include documentation for currently coded functionality
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2015-09-21 02:43:29 UTC
The method of adding the option is fine with me.  As I don't do anything with the releases, I have no opinion about the validity of it.  But it is optional, so, I don't have a problem with it.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2015-09-21 11:55:09 UTC
Instead of calling isoroot_checksum unconditionally and have the function be a no-op when clst_livecd_verify isn't set, I'd prefer only call isoroot_checksum when the variable is set in the spec.
Comment 4 Rick Farina (Zero_Chaos) gentoo-dev 2015-09-21 13:04:31 UTC
Created attachment 412440 [details, diff]
moar conditionals

this patch has the added conditionals as requested by jmbsvicetto, however, I think it is really ugly to have 6 checks instead of 1
Comment 5 Rick Farina (Zero_Chaos) gentoo-dev 2015-09-21 13:53:19 UTC
Created attachment 412444 [details, diff]
new function to reduce copy pasta

this version of the patch based on discussion with jmbsvicetto on irc
Comment 6 Fernando (likewhoa) 2015-09-21 13:55:10 UTC
(In reply to Rick Farina (Zero_Chaos) from comment #4)
> Created attachment 412440 [details, diff] [details, diff]
> moar conditionals
> 
> this patch has the added conditionals as requested by jmbsvicetto, however,
> I think it is really ugly to have 6 checks instead of 1

I also prefer the one check in isoroot_checksum() myself instead of 6 conditionals which isoroot_checksum() does as is.
Comment 7 Rick Farina (Zero_Chaos) gentoo-dev 2015-09-21 17:51:56 UTC
(In reply to Fernando (likewhoa) from comment #6)
> I also prefer the one check in isoroot_checksum() myself instead of 6
> conditionals which isoroot_checksum() does as is.

please see latest patch then
Comment 8 Rick Farina (Zero_Chaos) gentoo-dev 2015-09-23 18:52:30 UTC
a modified version of this has been committed based on testing and feedback.

https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=2b0e9243fb2456e86053b9448938359920916ecc