diff options
author | Chris Lumens <clumens@redhat.com> | 2006-10-19 20:14:53 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-10-19 20:14:53 +0000 |
commit | 5789f289c12bba855fa55a081485a03c41668a35 (patch) | |
tree | 826ff410eff92c948454ffdb798b712391221ab0 | |
parent | d269d06d191217e15f7f792ad3cf13ef95ea13f9 (diff) | |
download | anaconda-5789f289c12bba855fa55a081485a03c41668a35.tar.gz anaconda-5789f289c12bba855fa55a081485a03c41668a35.tar.xz anaconda-5789f289c12bba855fa55a081485a03c41668a35.zip |
Don't specify a stdout or stderr for shells on s390 (#210481).
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | anaconda | 5 | ||||
-rw-r--r-- | rescue.py | 6 | ||||
-rw-r--r-- | text.py | 5 |
4 files changed, 18 insertions, 3 deletions
@@ -16,6 +16,11 @@ changes when going back to the parttype screen (#211255). * textw/partition_text.py (PartitionWindow.__call__): Likewise. + * anaconda (runVNC): Don't specify a stdout or stderr for shells on + s390 (#210481). + * rescue.py (runShell): Likewise. + * text.py (spawShell): Likewise. + 2006-10-18 David Cantrell <dcantrell@redhat.com> * anaconda (parseOptions): Add the --noipv4 and --noipv6 opts (#208334). @@ -426,7 +426,10 @@ def runVNC(vncpassword, vncconnecthost, vncconnectport, vncStartedCB=None): if os.access(p, os.R_OK|os.X_OK): os.environ['PYTHONSTARTUP'] = p break - 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: addpid(shpid) os.waitpid(shpid, 0) @@ -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) @@ -560,7 +560,10 @@ def spawnShell(screen): screen.suspend() print "\n\nType <exit> to return to the install program.\n" 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) |