diff options
author | Chris Lumens <clumens@redhat.com> | 2006-08-03 18:32:27 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-08-03 18:32:27 +0000 |
commit | c8d224516f7237273972d3a398818dace22465c4 (patch) | |
tree | a4a3aedd35a80a0b7c9d37dc3d70deab0d4c5663 /loader2/loader.c | |
parent | 9589856dce17fd625c9afbe485fed8a47f8ecd36 (diff) | |
download | anaconda-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.c | 5 |
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; |