예제 #1
0
 def setupSections(self):
     self.registerSection(PreScriptSection(self.handler, dataObj=self.scriptClass))
     self.registerSection(PreInstallScriptSection(self.handler, dataObj=self.scriptClass))
     self.registerSection(PostScriptSection(self.handler, dataObj=self.scriptClass))
     self.registerSection(TracebackScriptSection(self.handler, dataObj=self.scriptClass))
     self.registerSection(OnErrorScriptSection(self.handler, dataObj=self.scriptClass))
     self.registerSection(PackageSection(self.handler))
     self.registerSection(AddonSection(self.handler))
     self.registerSection(AnacondaSection(self.handler.anaconda))
예제 #2
0
 def setupSections(self):
     self.registerSection(
         PreScriptSection(self.handler, dataObj=self.scriptClass))
     self.registerSection(
         PreInstallScriptSection(self.handler, dataObj=self.scriptClass))
     self.registerSection(
         PostScriptSection(self.handler, dataObj=self.scriptClass))
     self.registerSection(
         TracebackScriptSection(self.handler, dataObj=self.scriptClass))
     self.registerSection(
         OnErrorScriptSection(self.handler, dataObj=self.scriptClass))
     self.registerSection(
         UselessSection(self.handler, sectionOpen="%packages"))
     self.registerSection(UselessSection(self.handler,
                                         sectionOpen="%addon"))
예제 #3
0
    def setupSections(self):
        """Install the sections all kickstart files support.  You may override
           this method in a subclass, but should avoid doing so unless you know
           what you're doing.
        """
        self._sections = {}

        # Install the sections all kickstart files support.
        self.registerSection(PreScriptSection(self.handler, dataObj=Script))
        self.registerSection(PreInstallScriptSection(self.handler, dataObj=Script))
        self.registerSection(PostScriptSection(self.handler, dataObj=Script))
        self.registerSection(TracebackScriptSection(self.handler, dataObj=Script))
        self.registerSection(PackageSection(self.handler))

        # Whitelist well-known sections that pykickstart does not understand,
        # but shouldn't error on.
        self.registerSection(NullSection(self.handler, sectionOpen="%addon"))
        self.registerSection(NullSection(self.handler, sectionOpen="%anaconda"))