[PATCH 14/14] Fix --kickstart option
Brian C. Lane
bcl at redhat.com
Thu Aug 21 20:48:14 UTC 2014
On Thu, Aug 21, 2014 at 10:10:35PM +0200, Martin Kolman wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
>
> When no arguments are passed we default to /run/install/ks.cfg, but when
> there is an argument we want to use that instead.
>
> (cherry picked from commit f8b20c471c83e6c02d006b48721f73c164ea71ef)
>
> Related: rhbz:#1088459
> Signed-off-by: Martin Kolman <mkolman at redhat.com>
> ---
> anaconda | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/anaconda b/anaconda
> index 959df78..8d97bdf 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -253,7 +253,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,
> --
> 1.9.3
>
You're going to also want to pull in commit 5bc4de79e5802f which fixes
this, we actually act differently for --ks vs. --kickstart
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list