[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]