[PATCH] Fix --kickstart option
Brian C. Lane
bcl at redhat.com
Wed Jul 2 20:34:52 UTC 2014
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,
--
1.9.3
More information about the anaconda-patches
mailing list