diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-12-10 23:12:53 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-12-10 23:12:53 +0000 |
commit | 39dcaa35e13f2efc08d905aada02f68905b23369 (patch) | |
tree | 2cc043c2d1bd7469b7a0ff46f836685ed89686e7 /loader | |
parent | 055464323d19bb203589efc869312937e9edc742 (diff) | |
download | anaconda-39dcaa35e13f2efc08d905aada02f68905b23369.tar.gz anaconda-39dcaa35e13f2efc08d905aada02f68905b23369.tar.xz anaconda-39dcaa35e13f2efc08d905aada02f68905b23369.zip |
missing updates.img should be silent
Diffstat (limited to 'loader')
-rw-r--r-- | loader/loader.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/loader/loader.c b/loader/loader.c index 7ccee7fa9..765b27c37 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1296,7 +1296,8 @@ static char * mountNfsImage(struct installMethod * method, #ifdef INCLUDE_NETWORK static int loadSingleUrlImage(struct iurlinfo * ui, char * file, int flags, - char * dest, char * mntpoint, char * device) { + char * dest, char * mntpoint, char * device, + int silentErrors) { int fd; int rc; char * newFile = NULL; @@ -1315,6 +1316,7 @@ static int loadSingleUrlImage(struct iurlinfo * ui, char * file, int flags, if (fd == -2) return 1; if (fd < 0) { + if (!silentErrors) newtWinMessage(_("Error"), _("OK"), _("File %s/%s not found on server."), ui->prefix, file); @@ -1343,7 +1345,7 @@ static int loadUrlImages(struct iurlinfo * ui, int flags) { * we can minimize our ramdisk size */ if (!loadSingleUrlImage(ui, "RedHat/base/updates.img", flags, "/tmp/ramfs/updates-disk.img", - "/tmp/update-disk", "loop7")) { + "/tmp/update-disk", "loop7", 1)) { /* copy the updates, then unmount the loopback and unlink the img */ copyDirectory("/tmp/update-disk", "/tmp/updates"); umountLoopback("/tmp/update-disk", "loop7"); @@ -1352,7 +1354,7 @@ static int loadUrlImages(struct iurlinfo * ui, int flags) { if (loadSingleUrlImage(ui, "RedHat/base/netstg1.img", flags, "/tmp/ramfs/netstg1.img", - "/mnt/runtime", "loop0")) { + "/mnt/runtime", "loop0", 0)) { newtWinMessage(ui->protocol == URL_METHOD_FTP ? _("FTP") : _("HTTP"), _("OK"), _("Unable to retrieve the first install image")); |