Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Log that we are running %pre scripts to the console (#640256). (http://www.linux-archive.org/debian-user/436951-log-we-running-pre-scripts-console-640256-a.html)

Chris Lumens 10-07-2010 06:33 PM

Log that we are running %pre scripts to the console (#640256).
 
We'll never have anaconda.intf set before calling runPreScripts, so the
most we can offer is a simple print.
---
pyanaconda/kickstart.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 8a2c571..8df032e 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -57,6 +57,7 @@ _ = lambda x: gettext.ldgettext("anaconda", x)
import logging
log = logging.getLogger("anaconda")
stderrLog = logging.getLogger("anaconda.stderr")
+stdoutLog = logging.getLogger("anaconda.stdout")
from anaconda_log import logger, logLevelMap, setHandlersLevel,
DEFAULT_TTY_LEVEL

@@ -1335,10 +1336,8 @@ def runPreScripts(anaconda, scripts):
return

log.info("Running kickstart %%pre script(s)")
- if anaconda.intf is not None:
- w = anaconda.intf.waitWindow(_("Pre-Installation"),
- _("Running pre-installation scripts"))
-
+ stdoutLog.info(_("Running pre-installation scripts"))
+
map (lambda s: s.run("/", flags.serial, anaconda.intf), preScripts)

log.info("All kickstart %%pre script(s) have been run")
--
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 09:26 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.