summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-08-23 19:54:32 +0000
committerMike Fulbright <msf@redhat.com>2002-08-23 19:54:32 +0000
commitd68b2a3bf5ba2e7cb3e786845fb8a0d91f15024a (patch)
treee9e2033d4d8dedcb28b65b001a04897a5ae4090f /loader
parent161f297424a24f503417a7353a4e73d18eb6419c (diff)
give credit where credit is due; dont use RHupdates if this is not NFS cause it causes problems in other install methods
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 2e85bebf1..843d3c1d0 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -9,6 +9,7 @@
* Erik Troan <ewt@redhat.com>
* Matt Wilson <msw@redhat.com>
* Michael Fulbright <msf@redhat.com>
+ * Jeremy Katzj <katzj@redhat.com>
*
* Copyright 1997 - 2002 Red Hat, Inc.
*
@@ -3357,6 +3358,7 @@ int main(int argc, char ** argv) {
int flags = 0;
int testing = 0;
int mediacheck = 0;
+ int useRHupdates = 0;
char * lang = NULL;
char * keymap = NULL;
char * kbdtype = NULL;
@@ -3763,17 +3765,30 @@ int main(int argc, char ** argv) {
#endif
/* Just in case */
- setenv("PYTHONPATH", "/tmp/updates:/mnt/source/RHupdates", 1);
+ /* only use RHupdates if we're NFS, otherwise we'll use files on */
+ /* the first ISO image and we won't be able to umount it */
+ useRHupdates = 0;
+ if (strncmp(url, "nfs:", 4)) {
+ logMessage("NFS install method detectde, will use RHupdates/");
+ useRHupdates = 1;
+ }
+
+ if (useRHupdates)
+ setenv("PYTHONPATH", "/tmp/updates:/mnt/source/RHupdates", 1);
+ else
+ setenv("PYTHONPATH", "/tmp/updates", 1);
argptr = anacondaArgs;
if (!access("/tmp/updates/anaconda", X_OK))
*argptr++ = "/tmp/updates/anaconda";
- else if (!access("/mnt/source/RHupdates/anaconda", X_OK))
+ else if (useRHupdates && !access("/mnt/source/RHupdates/anaconda", X_OK))
*argptr++ = "/mnt/source/RHupdates/anaconda";
else
*argptr++ = "/usr/bin/anaconda";
+ logMessage("Running anaconda script %s", *(argptr-1));
+
*argptr++ = "-m";
if (strncmp(url, "ftp:", 4)) {
*argptr++ = url;