Bug 907600

Summary: RFE: checkisomd5: 3 different return values for PASS, FAIL, and UNKNOWN
Product: [Fedora] Fedora Reporter: Andre Robatino <robatino>
Component: isomd5sumAssignee: Brian Lane <bcl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, bcl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-27 17:15:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andre Robatino 2013-02-04 19:57:36 UTC
Description of problem:
The checkisomd5 man page currently shows only 2 return values, one for PASS, the other for FAIL or UNKNOWN:

EXIT STATUS
       Program  returns exit status 0 if the checksum is correct, or 1 if the
       checksum is incorrect, non-existent, or check was aborted.

If I'm not mistaken, this makes it difficult to fix bug 891548 (ESC during mediacheck drops to emergency shell rather than continuing with the install). I suggest a third return value for UNKNOWN, so the installer can continue with the install on either PASS or UNKNOWN.

Version-Release number of selected component (if applicable):
isomd5sum-1.0.9-2.fc18

Additional info:
Also see bug 839709 which requests a reassignment of the existing two return values. That's independent of this but should be considered when deciding what the return values should be.

Comment 1 Andre Robatino 2013-03-23 21:08:09 UTC
Verified that in 19 Alpha TC1, the mediacheck does the right thing for PASS, FAIL, and UNKNOWN. (For the latter, the Esc key lets the install continue.)