summaryrefslogtreecommitdiffstats
path: root/pyanaconda/anaconda_log.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyanaconda/anaconda_log.py')
-rw-r--r--pyanaconda/anaconda_log.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyanaconda/anaconda_log.py b/pyanaconda/anaconda_log.py
index 439192711..36c79f03a 100644
--- a/pyanaconda/anaconda_log.py
+++ b/pyanaconda/anaconda_log.py
@@ -30,7 +30,6 @@ import sys
import types
import warnings
-from pyanaconda.storage import arch
from flags import flags
DEFAULT_TTY_LEVEL = logging.INFO
@@ -105,7 +104,9 @@ class AnacondaLog:
logger.setLevel(logging.DEBUG)
self.forwardToSyslog(logger)
# Logging of basic stuff and storage to tty3.
- if not arch.isS390() and os.access(MAIN_LOG_TTY, os.W_OK):
+ # XXX Use os.uname here since it's too early to be importing the
+ # storage module.
+ if not os.uname()[4].startswith('s390') and os.access(MAIN_LOG_TTY, os.W_OK):
self.addFileHandler(MAIN_LOG_TTY, logger,
fmtStr=TTY_FORMAT,
autoLevel=True)