FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 10-07-2010, 06:33 PM
Chris Lumens
 
Default 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
 

Thread Tools




All times are GMT. The time now is 06:23 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org