summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-10-19 20:30:51 +0000
committerChris Lumens <clumens@redhat.com>2006-10-19 20:30:51 +0000
commit374ecffb70ee0de64521d0ad24e15ad2a825232d (patch)
tree4629395af1f6187659e24dba495aaad4794a775b /iutil.py
parent5789f289c12bba855fa55a081485a03c41668a35 (diff)
downloadanaconda-374ecffb70ee0de64521d0ad24e15ad2a825232d.tar.gz
anaconda-374ecffb70ee0de64521d0ad24e15ad2a825232d.tar.xz
anaconda-374ecffb70ee0de64521d0ad24e15ad2a825232d.zip
Here's a better fix.
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/iutil.py b/iutil.py
index a7554fe86..41518744a 100644
--- a/iutil.py
+++ b/iutil.py
@@ -74,6 +74,12 @@ def execWithCapture(command, argv, stdin = 0, stderr = 2, root='/'):
pipe.wait()
return rc
+def execConsole():
+ if rhpl.getArch() == "s390":
+ iutil.execWithRedirect("/bin/sh", [])
+ else:
+ iutil.execWithRedirect("/bin/sh", [], stdout="/dev/console", stderr="/dev/console")
+
# return size of directory (and subdirs) in kilobytes
def getDirSize(dir):
def getSubdirSize(dir):