diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-19 16:43:27 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-19 16:43:27 +0000 |
commit | 25919ac7702f02f1d55e3ce4b9d60c4a65a21fbd (patch) | |
tree | cda445d1ddeaaa02d949304b82f68186a7699638 /loader | |
parent | af2e6081c2e87086d90b6b5179e9d9d48754a657 (diff) | |
download | anaconda-25919ac7702f02f1d55e3ce4b9d60c4a65a21fbd.tar.gz anaconda-25919ac7702f02f1d55e3ce4b9d60c4a65a21fbd.tar.xz anaconda-25919ac7702f02f1d55e3ce4b9d60c4a65a21fbd.zip |
add askmethod flag so that we can avoid the automatically going to the detected cd
Diffstat (limited to 'loader')
-rw-r--r-- | loader/loader.c | 9 | ||||
-rw-r--r-- | loader/loader.h | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/loader/loader.c b/loader/loader.c index 430ec0cf6..c0354f54e 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1896,11 +1896,11 @@ static char * doMountImage(char * location, # if defined (__sparc__) || defined (__alpha__) /* Check any attached CDROM device for a Red Hat CD. If there is one there, just die happy */ - if (!FL_EXPERT(flags)) { + if (!FL_ASKMETHOD(flags)) { # else /* If no network is available, check any attached CDROM device for a Red Hat CD. If there is one there, just die happy */ - if (!FL_EXPERT(flags)) { + if (!FL_ASKMETHOD(flags)) { # endif url = setupCdrom(NULL, location, kd, modInfo, modLoaded, modDepsPtr, flags, 1, 1); @@ -2432,7 +2432,10 @@ static int parseCmdLineFlags(int flags, char * cmdLine, char ** ksSource, for (i = 0; i < argc; i++) { if (!strcasecmp(argv[i], "expert")) - flags |= LOADER_FLAGS_EXPERT | LOADER_FLAGS_MODDISK; + flags |= (LOADER_FLAGS_EXPERT | LOADER_FLAGS_MODDISK | + LOADER_FLAGS_ASKMETHOD); + else if (!strcasecmp(argv[i], "askmethod")) + flags |= LOADER_FLAGS_ASKMETHOD; else if (!strcasecmp(argv[i], "telnet")) flags |= LOADER_FLAGS_TELNETD; else if (!strcasecmp(argv[i], "noshell")) diff --git a/loader/loader.h b/loader/loader.h index e039a305f..8f6523464 100644 --- a/loader/loader.h +++ b/loader/loader.h @@ -27,6 +27,7 @@ #define LOADER_FLAGS_KSHTTP (1 << 21) #define LOADER_FLAGS_MEDIACHECK (1 << 22) #define LOADER_FLAGS_NOUSBSTORAGE (1 << 23) +#define LOADER_FLAGS_ASKMETHOD (1 << 24) #define FL_TESTING(a) ((a) & LOADER_FLAGS_TESTING) #define FL_EXPERT(a) ((a) & LOADER_FLAGS_EXPERT) @@ -55,6 +56,7 @@ #define FL_KSHTTP(a) ((a) & LOADER_FLAGS_KSHTTP) #define FL_MEDIACHECK(a) ((a) & LOADER_FLAGS_MEDIACHECK) #define FL_NOUSBSTORAGE(a) ((a) & LOADER_FLAGS_NOUSBSTORAGE) +#define FL_ASKMETHOD(a) ((a) & LOADER_FLAGS_ASKMETHOD) #define CODE_PCMCIA 1 |