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: |
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) |