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

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

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

Revision 1.4 by slords, Fri Aug 19 04:34:57 2005 UTC Revision 1.10 by gordonr, Fri Jun 9 05:28:20 2006 UTC
# Line 4  from rhpl.log import log Line 4  from rhpl.log import log
4  from constants import *  from constants import *
5    
6  import os  import os
 import string  
7  import iutil  import iutil
8    import string
9  import security  import security
10    
11  class Script:  class Script:
# Line 88  class InstallClass(BaseInstallClass): Line 88  class InstallClass(BaseInstallClass):
88                      "complete"                      "complete"
89                  )                  )
90    
91      def postAction(self, rootPath, serial):          if iutil.getPPCMachine() == "iSeries":
92                dispatch.skipStep("bootloadersetup", skip = 0)
93    
94            if iutil.getArch() != "i386" and iutil.getArch() != "x86_64":
95                dispatch.skipStep("bootloader")
96                dispatch.skipStep("bootloaderadvanced")
97    
98            if iutil.getArch() != "i386" and iutil.getArch() != "x86_64":
99                dispatch.skipStep("upgbootloader")            
100    
101        def postAction(self, rootPath, serial, intf):
102            win = intf.waitWindow(_("Post Upgrade Script"),
103               _("The post upgrade script is running..."))
104    
105          script = ( "/sbin/syslogd &\n"          script = ( "/sbin/syslogd &\n"
106                     "sleep 2\n"                     "sleep 2\n"
107                     "/sbin/e-smith/signal-event post-upgrade\n" )                     "/sbin/e-smith/signal-event post-upgrade\n" )
108          s = Script(script, interp="/bin/sh", inChroot=1)          s = Script(script, interp="/bin/sh", inChroot=1)
109          log("%s", s)          log("%s", s)
110          s.run(rootPath, serial)          s.run(rootPath, serial)
111            win.pop()
112    
113      def setInstallData(self, id):      def setInstallData(self, id):
114          BaseInstallClass.setInstallData(self, id)          BaseInstallClass.setInstallData(self, id)


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