From 324213c42f896f50a2caed139452408fed6df0fd Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 19 Oct 2009 08:45:40 -0600 Subject: [PATCH] Run SME post-install scripts on kickstart install/upgrade --- kickstart.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/kickstart.py b/kickstart.py index 37b4246..8c8788a 100644 --- a/kickstart.py +++ b/kickstart.py @@ -833,6 +833,15 @@ class Kickstart(cobject): w.pop() def postAction(self, anaconda, serial): + win = anaconda.intf.waitWindow(_("Post Install Script"), + _("The post installation script is running...")) + + script = ( "#!/bin/sh\nmkdir -p /var/lib/dhcp; /sbin/syslogd ; sleep 2; /sbin/e-smith/signal-event post-install\n" ) + s = Script(script, interp="/bin/sh", inChroot=1) + log.info("%s", s) + s.run(anaconda.rootPath, serial) + win.pop() + postScripts = filter (lambda s: s.type == KS_SCRIPT_POST, self.ksdata.scripts) -- 1.5.5.6