diff options
author | Chris Lumens <clumens@redhat.com> | 2008-07-11 15:24:53 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-07-11 15:24:53 -0400 |
commit | 0041c6badb9be15e609c37aac1d294199c41fbd4 (patch) | |
tree | 7f89e49e3eac4fc06957cbab5ffa125f8324b480 | |
parent | e2ec0bed0f54979eca0ddb9a338c5f6adf58f0ad (diff) | |
download | anaconda-0041c6badb9be15e609c37aac1d294199c41fbd4.tar.gz anaconda-0041c6badb9be15e609c37aac1d294199c41fbd4.tar.xz anaconda-0041c6badb9be15e609c37aac1d294199c41fbd4.zip |
Display a status message while waiting for the CD to become ready.
-rw-r--r-- | loader2/cdinstall.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/loader2/cdinstall.c b/loader2/cdinstall.c index fd001946a..5066ce2ad 100644 --- a/loader2/cdinstall.c +++ b/loader2/cdinstall.c @@ -46,6 +46,7 @@ #include "method.h" #include "cdinstall.h" #include "mediacheck.h" +#include "windows.h" #include "../isys/imount.h" #include "../isys/isys.h" @@ -326,6 +327,11 @@ static char *setupCdrom(char *location, struct loaderData_s *loaderData, logMessage(INFO, "trying to mount CD device %s on %s", devices[i]->device, location); + if (!FL_CMDLINE(flags)) + winStatus(60, 3, _("Scanning"), _("Looking for installation media on CD device %s"), devices[i]->device); + else + printf(_("Looking for installation media on CD device %s"), devices[i]->device); + fd = open(devices[i]->device, O_RDONLY | O_NONBLOCK); if (fd >= 0) { waitForCdromTrayClose(fd); @@ -345,6 +351,9 @@ static char *setupCdrom(char *location, struct loaderData_s *loaderData, } } + if (!FL_CMDLINE(flags)) + newtPopWindow(); + if (!(rc=doPwMount(devices[i]->device, location, "iso9660", "ro"))) { cddev = devices[i]->device; if (!access(stage2loc, R_OK)) { |