diff options
author | Mike Fulbright <msf@redhat.com> | 2001-11-16 22:03:55 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-11-16 22:03:55 +0000 |
commit | b70f42c0d2d62907f55896f71835192d5e1e21b4 (patch) | |
tree | b251c59e62cfdefc47a64e9099640c368dbdf40b | |
parent | f658739cc73876bcd844545cfe6ef6a1a4d4f9a7 (diff) | |
download | anaconda-b70f42c0d2d62907f55896f71835192d5e1e21b4.tar.gz anaconda-b70f42c0d2d62907f55896f71835192d5e1e21b4.tar.xz anaconda-b70f42c0d2d62907f55896f71835192d5e1e21b4.zip |
make mediacheck only happen if mediacheck is on boot cmdline
-rw-r--r-- | loader/loader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c index 12381f074..5d7481f6e 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -2622,6 +2622,7 @@ int main(int argc, char ** argv) { int i, rc; int flags = 0; int testing = 0; + int mediacheck = 0; char * lang = NULL; char * keymap = NULL; char * kbdtype = NULL; @@ -2642,6 +2643,7 @@ int main(int argc, char ** argv) { { "ksfile", '\0', POPT_ARG_STRING, &ksFile, 0 }, { "probe", '\0', POPT_ARG_NONE, &probeOnly, 0 }, { "test", '\0', POPT_ARG_NONE, &testing, 0 }, + { "mediacheck", '\0', POPT_ARG_NONE, &mediacheck, 0}, { 0, 0, 0, 0, 0 } }; @@ -2711,8 +2713,9 @@ int main(int argc, char ** argv) { } if (testing) flags |= LOADER_FLAGS_TESTING; + if (mediacheck) flags |= LOADER_FLAGS_MEDIACHECK; - flags |= LOADER_FLAGS_MEDIACHECK; + /* flags |= LOADER_FLAGS_MEDIACHECK; */ flags = parseCmdLineFlags(flags, cmdLine, &ksSource, &ksNetDevice, &instClass); |