[PATCH] Fix --kickstart option

Martin Kolman mkolman at redhat.com
Thu Jul 3 09:26:21 UTC 2014


On Wed, 2014-07-02 at 13:34 -0700, Brian C. Lane wrote:
> When no arguments are passed we default to /run/install/ks.cfg, but when
> there is an argument we want to use that instead.
> ---
>  anaconda | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/anaconda b/anaconda
> index dde0217..f4b8425 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -427,7 +427,7 @@ def parseArguments(argv=None, boot_cmdline=None):
>      # Method of operation
>      ap.add_argument("-d", "--debug", dest="debug", action="store_true",
>                      default=False, help=help_parser.help_text("debug"))
> -    ap.add_argument("--ks", "--kickstart", dest="ksfile", action="store_const",
> +    ap.add_argument("--ks", "--kickstart", dest="ksfile", nargs="?",
>                      metavar="KICKSTART_URL", const="/run/install/ks.cfg",
>                      help=help_parser.help_text("kickstart"))
>      ap.add_argument("--rescue", dest="rescue", action="store_true", default=False,
Good catch! Also ACK.



More information about the anaconda-patches mailing list