--- anaconda-7.3/fermiinstallclass.py Wed Dec 31 18:00:00 1969 +++ anaconda-7.3-f1/fermiinstallclass.py Thu Jul 11 15:35:00 2002 @@ -0,0 +1,32 @@ +from installclass import BaseInstallClass +import os +from kickstart import Script + +class FermiInstallClass(BaseInstallClass): + pixmap = "workstation.png" + + def postAction(self, rootPath, serial): + for script in self.postScripts: + script.run(rootPath, serial) + + def getFermiTextFile(self, filename): + + file = "" +# fullfilename = todo.method.getFilename(filename,None) +# fullfilename = "/mnt/source/" + filename + fullfilename = "/usr/lib/anaconda/fermi/" + filename + for n in open(fullfilename).readlines(): + file = file + n + return file + + def __init__(self, expert): + BaseInstallClass.__init__(self, expert) + + self.setMakeBootdisk(0) + self.postScripts = [] + scriptInterp="/bin/sh" + scriptChroot=0 + ferminame = "post.sh" + script = self.getFermiTextFile(ferminame) + s = Script(script,scriptInterp,scriptChroot) + self.postScripts.append(s)