1 |
slords |
1.1 |
From 899cf5eee4c0015697957aa6fb2c886f81171c1a Mon Sep 17 00:00:00 2001 |
2 |
|
|
From: Shad L. Lords <slords@mail.com> |
3 |
|
|
Date: Mon, 26 Oct 2009 18:58:55 -0600 |
4 |
|
|
Subject: [PATCH] Run SME post-install scripts on kickstart install/upgrade |
5 |
|
|
|
6 |
|
|
--- |
7 |
|
|
kickstart.py | 8 ++++++++ |
8 |
|
|
1 files changed, 8 insertions(+), 0 deletions(-) |
9 |
|
|
|
10 |
|
|
diff --git a/kickstart.py b/kickstart.py |
11 |
|
|
index 26b8b4a..0ab99f5 100644 |
12 |
|
|
--- a/kickstart.py |
13 |
|
|
+++ b/kickstart.py |
14 |
|
|
@@ -102,6 +102,14 @@ class KickstartBase(BaseInstallClass): |
15 |
|
|
win = intf.waitWindow(_("Post Install Script"), |
16 |
|
|
_("The post installation script is running...")) |
17 |
|
|
|
18 |
|
|
+ script = ( "/sbin/syslogd &\n" |
19 |
|
|
+ "sleep 2\n" |
20 |
|
|
+ "/sbin/e-smith/signal-event post-install\n" ) |
21 |
|
|
+ s = Script(script, interp="/bin/sh", inChroot=1) |
22 |
|
|
+ log("%s", s) |
23 |
|
|
+ s.run(rootPath, serial) |
24 |
|
|
+ win.pop() |
25 |
|
|
+ |
26 |
|
|
log("Running kickstart %%post script(s)") |
27 |
|
|
for script in self.postScripts: |
28 |
|
|
script.run(rootPath, serial) |
29 |
|
|
-- |
30 |
|
|
1.5.5.6 |
31 |
|
|
|