diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-10-11 16:09:21 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-10-11 16:09:21 +0000 |
commit | a6740721b3d66516b41b5a7b9cc0dffba862ac94 (patch) | |
tree | c5145e08f6fbec3daebe4553ca8ad86723fa6de7 /kickstart.py | |
parent | ee3bb0914ddbb1276c4a14e1151f20416f341031 (diff) | |
download | anaconda-a6740721b3d66516b41b5a7b9cc0dffba862ac94.tar.gz anaconda-a6740721b3d66516b41b5a7b9cc0dffba862ac94.tar.xz anaconda-a6740721b3d66516b41b5a7b9cc0dffba862ac94.zip |
2005-10-11 Jeremy Katz <katzj@redhat.com>
* kickstart.py (Kickstart.postAction, Kickstart.preAction): Give
visual indication of scriptlets running (#170017)
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py index d544650b6..573aab5f1 100644 --- a/kickstart.py +++ b/kickstart.py @@ -658,17 +658,31 @@ class Kickstart(BaseInstallClass): def runPreScripts(self, intf = None): log.info("Running kickstart %%pre script(s)") + if intf is not None: + w = intf.waitWindow(_("Running..."), + _("Running pre-install scripts")) + for script in filter (lambda s: s.type == KS_SCRIPT_PRE, self.ksdata.scripts): script.run("/", self.serial, intf) + log.info("All kickstart %%pre script(s) have been run") + if intf is not None: + w.pop() def postAction(self, rootPath, serial, intf = None): log.info("Running kickstart %%post script(s)") + if intf is not None: + w = intf.waitWindow(_("Running..."), + _("Running post-install scripts")) + for script in filter (lambda s: s.type == KS_SCRIPT_POST, self.ksdata.scripts): script.run(rootPath, serial, intf) + log.info("All kickstart %%post script(s) have been run") + if intf is not None: + w.pop() def runTracebackScripts(self): log.info("Running kickstart %%traceback script(s)") |