kadischi/livecd_generator kadischi.py,1.14,1.15

Jasper O'neal Hartline (autopsy) fedora-extras-commits at redhat.com
Sat Jul 1 18:53:32 UTC 2006


Author: autopsy

Update of /cvs/devel/kadischi/livecd_generator
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8435/kadischi/livecd_generator

Modified Files:
	kadischi.py 
Log Message:
Allow passing of parameters to anaconda via --anaconda_option=


Index: kadischi.py
===================================================================
RCS file: /cvs/devel/kadischi/livecd_generator/kadischi.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- kadischi.py	1 Jul 2006 02:49:11 -0000	1.14
+++ kadischi.py	1 Jul 2006 18:53:29 -0000	1.15
@@ -42,6 +42,7 @@
 parser.add_option ("", "--graphical", dest="graphical", action="store_true", default=False, help="run anaconda in GUI mode")
 parser.add_option ("", "--kickstart", dest="ksfile", help="supply anaconda with kickstart file")
 parser.add_option ("", "--buildstamp", dest="buildstamp", help="buildstamp file (if not set, using the default buildstamp from the config directory)")
+parser.add_option ("", "--anaconda_option", dest="anaconda_options", action="append", help="Anaconda options e.g. --anaconda_option={--test,--vnc,--lowres}")
 
 flc_log ('Parsing command line arguments')
 (options, args) = parser.parse_args ()
@@ -67,6 +68,12 @@
 if options.cmdline:
     display_mode = ' -C'
 
+if options.anaconda_options:
+    opt = ''
+    for option in options.anaconda_options:
+        opt = ' ' + option
+        anaconda_args = opt + anaconda_args
+
 anaconda_args = display_mode + anaconda_args
 
 




More information about the fedora-extras-commits mailing list