| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
optparse.Option will ignore the value for options that have the action
"store_true" or "store_false". This is fine if the boolean values match,
but wrong otherwise (e.g. memcheck=yes sets memcheck=True, but so does
memcheck=0).
So: if we have a store_true option with a value that's False, skip the
normal behavior and just set the value to False.
As for store_false.. all our existing "store_false" options start with
"no", which means that negating them yields a double-negative
(e.g. nomemcheck=yes). We've decided that's just too confusing to
accept. so nomemcheck=yes should still set memcheck=False. So we don't
need to do anything special for "store_false".
|
|
|
|
|
| |
The options are stored without "inst." so when parsing boot arguments
we need to first strip the "inst." if present.
|
|
|
|
|
|
|
|
|
|
|
| |
If inst.ks is on the commandline, the dracut module fetches and
preprocesses the kickstart, then saves it to /run/install/ks.cfg.
So if we see a 'ks' option on the boot commandline, anaconda's option parser
should assume that the ksfile is /run/install/ks.cfg.
On the other hand, the '--kickstart' option can still be used on the
commandline to set ksfile to a different filename.
|
|
This commit adds AnacondaOptionParser, which is an OptionParser subclass
that parses kernel boot arguments in addition to commandline arguments.
It looks for boot args that match the parser's long options. You can
also provide extra boot args to look for, e.g.:
op.add_option("--kickstart", "ks", dest="ksfile")
This patch also switches anaconda over to the new parser, which means we no
longer need loader to parse boot args for us.
NOTE BEHAVIOR CHANGE: anaconda now expects (but does not yet require)
all boot arguments to begin with "inst.", and will emit warning
log messages if you use the old forms (repo=..., ks=..., etc.).
|