summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-03-16 13:07:30 -0400
committerJeremy Katz <katzj@redhat.com>2008-03-16 13:16:34 -0400
commit953ef6a060a4d0b890603a18f0e495c4c7fe9689 (patch)
tree9e8b5095b5fa64a44a7680551ee6f5d9ecc7bf10
parentf6d89169ca6a331b058dd3373d630b3627a94e9c (diff)
downloadanaconda-953ef6a060a4d0b890603a18f0e495c4c7fe9689.tar.gz
anaconda-953ef6a060a4d0b890603a18f0e495c4c7fe9689.tar.xz
anaconda-953ef6a060a4d0b890603a18f0e495c4c7fe9689.zip
Give indication of success or failure for mediacheck (#437577)
-rw-r--r--loader2/mediacheck.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/loader2/mediacheck.c b/loader2/mediacheck.c
index 91e0e8bdc..d6a0c1d57 100644
--- a/loader2/mediacheck.c
+++ b/loader2/mediacheck.c
@@ -96,12 +96,31 @@ int doMediaCheck(char *file, char *descr) {
newtFormDestroy(f);
newtPopWindow();
- if (rc == -1)
+ if (rc == -1) {
+ logMessage(WARNING, "mediacheck: %s (%s) has no checksum info", file, descr);
newtWinMessage(_("Error"), _("OK"),
_("Unable to read the disc checksum from the "
"primary volume descriptor. This probably "
"means the disc was created without adding the "
"checksum."));
+ } else if (rc == 0) {
+ logMessage(ERROR, "mediacheck: %s (%s) FAILED", file, descr);
+ newtWinMessage(_("Error"), _("OK"),
+ _("The image which was just tested has errors. "
+ "This could be due to a "
+ "corrupt download or a bad disc. "
+ "If applicable, please clean the disc "
+ "and try again. If this test continues to fail you "
+ "should not continue the install."));
+ } else if (rc > 0) {
+ logMessage(INFO, "mediacheck: %s (%s) PASSED", file, descr);
+ newtWinMessage(_("Success"), _("OK"),
+ _("The image which was just tested was successfully "
+ "verified. It should be OK to install from this "
+ "media. Note that not all media/drive errors can "
+ "be detected by the media check."));
+ }
+
return rc;
}