From 75560a672126a44bc811fe6968a4ea30ace380e4 Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 19 Oct 2009 08:45:40 -0600 Subject: [PATCH 16/17] 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 1f414c5..2a487b7 100644 --- a/kickstart.py +++ b/kickstart.py @@ -888,6 +888,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 = AnacondaKSScript (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.7.1