From 5789f289c12bba855fa55a081485a03c41668a35 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Thu, 19 Oct 2006 20:14:53 +0000 Subject: Don't specify a stdout or stderr for shells on s390 (#210481). --- rescue.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rescue.py') diff --git a/rescue.py b/rescue.py index c3517f67a..cd9c54302 100644 --- a/rescue.py +++ b/rescue.py @@ -28,6 +28,7 @@ import shutil import fcntl import termios +import rhpl from rhpl.translate import _ import logging @@ -177,7 +178,10 @@ def runShell(screen = None, msg=""): print if os.path.exists("/bin/sh"): - iutil.execWithRedirect("/bin/sh", [], stdout="/dev/console", stderr="/dev/console") + if rhpl.getArch() == "s390": + iutil.execWithRedirect("/bin/sh", []) + else: + iutil.execWithRedirect("/bin/sh", [], stdout="/dev/console", stderr="/dev/console") else: print "Unable to find /bin/sh to execute! Not starting shell" time.sleep(5) -- cgit