summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-01-21 23:53:10 +0000
committerMike Fulbright <msf@redhat.com>2003-01-21 23:53:10 +0000
commit892dca9c48108601e8655d5cde2d74e8beb55659 (patch)
treecb266fa2a03ee4222a690a842af6179054a6403a /rescue.py
parentba8019d283b27b56439d32733ca6fa7d75bc4095 (diff)
downloadanaconda-892dca9c48108601e8655d5cde2d74e8beb55659.tar.gz
anaconda-892dca9c48108601e8655d5cde2d74e8beb55659.tar.xz
anaconda-892dca9c48108601e8655d5cde2d74e8beb55659.zip
shell out and cleanse return code to fix bug mike m was seeing
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rescue.py b/rescue.py
index 9d5b24d4a..00e4257f8 100644
--- a/rescue.py
+++ b/rescue.py
@@ -159,7 +159,8 @@ def runRescue(instPath, mountroot, id):
print _("When finished please exit from the shell and your "
"system will reboot.")
print
- os.execv("/bin/sh", [ "-/bin/sh" ])
+ os.system("/bin/sh")
+ sys.exit(0)
# lets create some devices
iutil.makeDriveDeviceNodes()
@@ -346,4 +347,5 @@ def runRescue(instPath, mountroot, id):
print _("When finished please exit from the shell and your "
"system will reboot.")
print
- os.execv("/bin/sh", [ "-/bin/sh" ])
+ os.system("/bin/sh")
+ sys.exit(0)