summaryrefslogtreecommitdiffstats
path: root/loader2/loader.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-08-03 18:32:27 +0000
committerChris Lumens <clumens@redhat.com>2006-08-03 18:32:27 +0000
commitc8d224516f7237273972d3a398818dace22465c4 (patch)
treea4a3aedd35a80a0b7c9d37dc3d70deab0d4c5663 /loader2/loader.c
parent9589856dce17fd625c9afbe485fed8a47f8ecd36 (diff)
downloadanaconda-c8d224516f7237273972d3a398818dace22465c4.tar.gz
anaconda-c8d224516f7237273972d3a398818dace22465c4.tar.xz
anaconda-c8d224516f7237273972d3a398818dace22465c4.zip
Don't show method menu if we're installing from CD (#201108).
Diffstat (limited to 'loader2/loader.c')
-rw-r--r--loader2/loader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/loader2/loader.c b/loader2/loader.c
index a791439fc..e9b854d54 100644
--- a/loader2/loader.c
+++ b/loader2/loader.c
@@ -843,7 +843,7 @@ static char *doLoaderMain(char * location,
return url;
else {
rhcdfnd = 1;
- methodNum = 0; /* FIXME: this assumes cdrom is always first */
+ methodNum = METHOD_CDROM;
}
}
@@ -919,7 +919,7 @@ static char *doLoaderMain(char * location,
needed = -1;
- if (loaderData->method && (methodNum != -1)) {
+ if (loaderData->method != -1 && methodNum != -1) {
rc = 1;
} else {
/* we need to set these each time through so that we get
@@ -939,6 +939,7 @@ static char *doLoaderMain(char * location,
30, 10, 20, 6, installNames, &methodNum,
_("OK"), _("Back"), NULL);
}
+
if (rc && rc != 1) {
step = STEP_KBD;
dir = -1;