summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-01-07 22:59:47 +0000
committerMike Fulbright <msf@redhat.com>2003-01-07 22:59:47 +0000
commit50c21b0e1f21d2c97b14f04534939a85ffd6f4a1 (patch)
treedd19ae247a59f766cb04f8912f025ebc94c3a444 /loader2
parent5557f4dba4bf99a0c50d14b7d4cfe110554ee376 (diff)
downloadanaconda-50c21b0e1f21d2c97b14f04534939a85ffd6f4a1.tar.gz
anaconda-50c21b0e1f21d2c97b14f04534939a85ffd6f4a1.tar.xz
anaconda-50c21b0e1f21d2c97b14f04534939a85ffd6f4a1.zip
improve mediacheck failed message as per bug #81285
Diffstat (limited to 'loader2')
-rw-r--r--loader2/mediacheck.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/loader2/mediacheck.c b/loader2/mediacheck.c
index f82a5fd37..83dda6e61 100644
--- a/loader2/mediacheck.c
+++ b/loader2/mediacheck.c
@@ -301,11 +301,11 @@ int mediaCheckFile(char *file, char *descr) {
int isostatus;
char *result;
unsigned char mediasum[33], computedsum[33];
- char tmpstr[256];
+ char tmpstr[512];
char descrstr[256];
long long isosize;
newtComponent t, f;
-
+
isofd = open(file, O_RDONLY);
if (isofd < 0) {
@@ -319,7 +319,14 @@ int mediaCheckFile(char *file, char *descr) {
close(isofd);
if (rc == 0) {
- result = _("FAIL.\n\nIt is not recommended to use this media.");
+ result = _("FAIL.\n\n"
+ "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.");
+
logMessage("mediacheck: %s (%s) FAILED", file, descr);
logMessage("value of isostatus iso flag is %d", isostatus);
} else if (rc > 0) {
@@ -331,8 +338,8 @@ int mediaCheckFile(char *file, char *descr) {
logMessage("mediacheck: %s (%s) has no checksum info", file, descr);
}
- newtCenteredWindow(60, 13, _("Media Check Result"));
- t = newtTextbox(4, 1, 52, 8, NEWT_TEXTBOX_WRAP);
+ newtCenteredWindow(60, 20, _("Media Check Result"));
+ t = newtTextbox(4, 1, 56, 18, NEWT_TEXTBOX_WRAP);
if (descr)
snprintf(descrstr, sizeof(descrstr),
_("of the image:\n\n%s\n\n"), descr);
@@ -344,7 +351,7 @@ int mediaCheckFile(char *file, char *descr) {
newtTextboxSetText(t, tmpstr);
f = newtForm(NULL, NULL, 0);
newtFormAddComponent(f, t);
- newtFormAddComponent(f, newtButton(26, 9, _("OK")));
+ newtFormAddComponent(f, newtButton(26, 15, _("OK")));
newtRunForm(f);
newtFormDestroy(f);
@@ -364,7 +371,7 @@ int main(int argc, char **argv) {
newtInit();
newtCls();
- rc = mediaCheckFile(argv[1]);
+ rc = mediaCheckFile(argv[1], "TESTING");
newtFinished();
}
#endif