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