diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-05-10 20:11:47 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-05-10 20:11:47 +0000 |
commit | 7fa91cc6f7c0be9a8c1a7efda056270d981a49fc (patch) | |
tree | e7b88b05384b03306418b161d985622994c511cd /kickstart.py | |
parent | 9213bf0bd320f1b27a5d8b1f17163f1f0910fe80 (diff) | |
download | anaconda-7fa91cc6f7c0be9a8c1a7efda056270d981a49fc.tar.gz anaconda-7fa91cc6f7c0be9a8c1a7efda056270d981a49fc.tar.xz anaconda-7fa91cc6f7c0be9a8c1a7efda056270d981a49fc.zip |
2005-05-10 Jeremy Katz <katzj@redhat.com>
* kickstart.py: Remove %installclass support. It's
been in the code for five years. And it's been broken the entire
time. (#149690)
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/kickstart.py b/kickstart.py index c2417aa7a..0249569c1 100644 --- a/kickstart.py +++ b/kickstart.py @@ -110,7 +110,7 @@ class Script: os.unlink(path) -class KickstartBase(BaseInstallClass): +class Kickstart(BaseInstallClass): name = "kickstart" def postAction(self, rootPath, serial, intf = None): @@ -1579,44 +1579,6 @@ class KickstartBase(BaseInstallClass): BaseInstallClass.__init__(self, 0) -def Kickstart(file, serial): - - f = open(file, "r") - lines = f.readlines() - f.close() - - passedLines = [] - while lines: - l = lines[0] - lines = lines[1:] - if l == "%installclass\n": - break - passedLines.append(l) - - if lines: - newKsFile = file + ".new" - f = open(newKsFile, "w") - f.writelines(passedLines) - f.close() - - f = open('/tmp/ksclass.py', "w") - f.writelines(lines) - f.close() - - oldPath = sys.path - sys.path.append('/tmp') - - from ksclass import CustomKickstart - os.unlink("/tmp/ksclass.py") - - ksClass = CustomKickstart(newKsFile, serial) - os.unlink(newKsFile) - else: - ksClass = KickstartBase(file, serial) - - return ksClass - - # see if any vnc parameters are specified in the kickstart file def parseKickstartVNC(ksfile): try: |