diff options
author | Matt Wilson <msw@redhat.com> | 1999-08-05 01:37:48 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-08-05 01:37:48 +0000 |
commit | 2091dfedf9048cb412bed826a0b42b07f81a341b (patch) | |
tree | bb5b65c01b79fcef7c89844468d002f9198bc1ff | |
parent | cfd1a388adce1f80aa12d56c56fd58ece0abc779 (diff) | |
download | anaconda-2091dfedf9048cb412bed826a0b42b07f81a341b.tar.gz anaconda-2091dfedf9048cb412bed826a0b42b07f81a341b.tar.xz anaconda-2091dfedf9048cb412bed826a0b42b07f81a341b.zip |
enable a switch for text mode
-rw-r--r-- | loader/init.c | 11 | ||||
-rw-r--r-- | loader/loader.c | 5 |
2 files changed, 14 insertions, 2 deletions
diff --git a/loader/init.c b/loader/init.c index bf84d4a40..04d242ff8 100644 --- a/loader/init.c +++ b/loader/init.c @@ -410,7 +410,7 @@ void unmountFilesystems(void) { } void readargs(int * isRescue, int * isSerial, int * isExpert, int * isKick, - int * forceSupp, int * isNetwork) { + int * forceSupp, int * isNetwork, int *isText) { char buf[512]; char * arg; int fd; @@ -475,6 +475,8 @@ void readargs(int * isRescue, int * isSerial, int * isExpert, int * isKick, *isNetwork = 0; } else if (!strcmp(start, "network")) { *isNetwork = 1; + } else if (!strcmp(start, "text")) { + *isText = 1; } else if (!strncmp(start, "kickstart", 9) || !strncmp(start, "ks", 2)) { arg = strchr(start, '='); @@ -508,6 +510,7 @@ int main(void) { int isExpert = 0; int isKick = 0; int isNetwork = 0; + int isText = 0; int doReboot = 0; int doShutdown =0; int forceSupp = 0; @@ -539,7 +542,8 @@ int main(void) { printf("done\n"); - readargs(&isRescue, &isSerial, &isExpert, &isKick, &forceSupp, &isNetwork); + readargs(&isRescue, &isSerial, &isExpert, &isKick, &forceSupp, &isNetwork, + &isText); if (isSerial) { fd = open("/dev/ttyS0", O_RDWR, 0); @@ -674,6 +678,9 @@ int main(void) { *argvp++ = "--local"; #endif + if (isText) + *argvp++ = "--text"; + *argvp++ = NULL; printf("running %s\n", argv[0]); diff --git a/loader/loader.c b/loader/loader.c index f38842d92..ce750bb8b 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -733,6 +733,7 @@ int main(int argc, char ** argv) { moduleList modLoaded; moduleDeps modDeps; int local = 0; + int text = 0; int i, rc; int testing = 0; moduleInfoSet modInfo; @@ -741,6 +742,7 @@ int main(int argc, char ** argv) { { "network", '\0', POPT_ARG_NONE, &network, 0 }, { "probe", '\0', POPT_ARG_NONE, &probeOnly, 0 }, { "test", '\0', POPT_ARG_NONE, &testing, 0 }, + { "text", '\0', POPT_ARG_NONE, &text, 0 }, POPT_AUTOHELP { 0, 0, 0, 0, 0 } }; @@ -842,6 +844,9 @@ int main(int argc, char ** argv) { *argptr++ = "-p"; *argptr++ = "/mnt/source"; + if (text) + *argptr++ = "-T"; + if (!FL_TESTING(flags)) { execv(anacondaArgs[0], anacondaArgs); perror("exec"); |