summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-01-10 21:20:54 +0000
committerJeremy Katz <katzj@redhat.com>2002-01-10 21:20:54 +0000
commit8a75ee8fe5b6c96be022ac9bf3ee16343abe0469 (patch)
tree834376200df3fa04a6c90ba8b14d64e8044ae744
parent1a0300d2588e6a3f4b4e4debaaefadcaae2f576f (diff)
downloadanaconda-8a75ee8fe5b6c96be022ac9bf3ee16343abe0469.tar.gz
anaconda-8a75ee8fe5b6c96be022ac9bf3ee16343abe0469.tar.xz
anaconda-8a75ee8fe5b6c96be022ac9bf3ee16343abe0469.zip
merge fix from head for updates.img in RedHat/base
-rw-r--r--loader/loader.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 3410cea94..267e9ba9e 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1196,7 +1196,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;
@@ -1215,6 +1216,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);
@@ -1243,7 +1245,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");
@@ -1252,7 +1254,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"));