Red Hat Bugzilla – Bug 189348
make pykickstart aware of kickstart options introduced with new fc/rhel versions
Last modified: 2007-11-30 17:11:30 EST
I know this may be out of scope for the module, but it was an idea anyhow..
Right now pykickstart supports options for kickstart files that don't exist for
all fc/rhel versions.
It would be nice if pyckistart was aware of what version of rhel/fc you were
writing the kickstart file for so that it would only expose the available
options-- This way you could have one program that could write kickstart files
for a bunch of different versions without putting in options that anaconda
couldn't parse because it's not aware.
I guess one would to do it is assign some sort of key -- maybe ksdata.version
that would define the version of rhel/fc you are using, and then add meta data
to the options so they are aware of what versions that should work with..
As of right now with my program I'm more or less stripping out of the text that
pykickstart creates all the options that shouldn't be available, there's got to
be a better way.
Well, that was a lot of work.
pykickstart-0.90-1 has been built, which contains this functionality. There's
still things to do like deciding on a final format for version strings, adding
support for various RHEL releases, making a devel syntax version for F7,
updating the programmers-guide, and so forth. However I'm going to close this
bug since the functionality is now there. Undoubtedly, there are going to be
bugs in this (or in anaconda, or s-c-ks because of this). Please file those
separately to make it easier to deal with, rather than adding a bunch of stuff
to this bug.
Thanks for the hard work.. I will get cracking on it soon!