/[smeserver]/cdrom.image/updates/kickstart.py
ViewVC logotype

Diff of /cdrom.image/updates/kickstart.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by slords, Sat Jul 30 15:05:50 2005 UTC Revision 1.3 by slords, Wed Apr 5 01:21:38 2006 UTC
# Line 97  class Script: Line 97  class Script:
97    
98  class KickstartBase(BaseInstallClass):  class KickstartBase(BaseInstallClass):
99      name = "kickstart"      name = "kickstart"
100    
101        def postAction(self, rootPath, serial, intf):
102            win = intf.waitWindow(_("Post Install Script"),
103               _("The post installation script is running..."))
104    
105            script = ( "/sbin/syslogd &\n"
106                       "sleep 2\n"
107                       "/sbin/e-smith/signal-event post-install\n" )
108            s = Script(script, interp="/bin/sh", inChroot=1)
109            log("%s", s)
110            s.run(rootPath, serial)
111            win.pop()
112            
     def postAction(self, rootPath, serial):  
113          log("Running kickstart %%post script(s)")          log("Running kickstart %%post script(s)")
114          for script in self.postScripts:          for script in self.postScripts:
115              script.run(rootPath, serial)              script.run(rootPath, serial)
# Line 1357  class KickstartBase(BaseInstallClass): Line 1368  class KickstartBase(BaseInstallClass):
1368    
1369      def setSteps(self, dispatch):      def setSteps(self, dispatch):
1370          if self.installType == "upgrade":          if self.installType == "upgrade":
1371              from smeupgradeclass import InstallClass              from upgradeclass import InstallClass
1372              theUpgradeclass = InstallClass(0)              theUpgradeclass = InstallClass(0)
1373              theUpgradeclass.setSteps(dispatch)              theUpgradeclass.setSteps(dispatch)
1374                            
# Line 1452  class KickstartBase(BaseInstallClass): Line 1463  class KickstartBase(BaseInstallClass):
1463          for n in self.packageList:          for n in self.packageList:
1464    
1465              # allow arch:name syntax              # allow arch:name syntax
1466              if n.find("."):              if n.find(".") != -1:
1467                  fields = n.split(".")                  fields = n.split(".")
1468                  name = string.join(fields[:-1], ".")                  name = string.join(fields[:-1], ".")
1469                  arch = fields[-1]                  arch = fields[-1]
# Line 1520  class KickstartBase(BaseInstallClass): Line 1531  class KickstartBase(BaseInstallClass):
1531    
1532          for n in self.excludedList:          for n in self.excludedList:
1533              # allow arch:name syntax              # allow arch:name syntax
1534              if n.find("."):              if n.find(".") != -1:
1535                  fields = n.split(".")                  fields = n.split(".")
1536                  name = string.join(fields[:-1], ".")                  name = string.join(fields[:-1], ".")
1537                  arch = fields[-1]                  arch = fields[-1]


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed