[PATCH 14/14] Fix --kickstart option
Martin Kolman
mkolman at redhat.com
Thu Aug 21 20:10:35 UTC 2014
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
More information about the anaconda-patches
mailing list