summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-01-24 17:05:24 +0000
committerMike Fulbright <msf@redhat.com>2001-01-24 17:05:24 +0000
commitcddb9dfb7ea0f9616a0735e434a596331a67ec9d (patch)
tree8349e3b8cb2370e001c3f0521d04d32979c06c71 /rescue.py
parent2dde15e507cf076c6d8676e928c5b9adf87ac2d2 (diff)
downloadanaconda-cddb9dfb7ea0f9616a0735e434a596331a67ec9d.tar.gz
anaconda-cddb9dfb7ea0f9616a0735e434a596331a67ec9d.tar.xz
anaconda-cddb9dfb7ea0f9616a0735e434a596331a67ec9d.zip
fixed traceback
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/rescue.py b/rescue.py
index a10efcc37..4a03c2bff 100644
--- a/rescue.py
+++ b/rescue.py
@@ -4,6 +4,7 @@ from text import WaitWindow, OkCancelWindow
from translate import _
import raid
import os
+from log import log
class RescueInterface:
@@ -26,6 +27,8 @@ def runRescue(serial):
fstab = None
+ log.open (serial, 0, 0)
+
try:
fstab = NewtFstab(1, serial, 0, 0, None, None, None, 0, [], 0, 0,
requireBlockDevices = 0)
@@ -70,6 +73,7 @@ def runRescue(serial):
else:
root = parts[choice]
+ rootmounted = 0
if root:
try:
upgrade.mountRootPartition(root, fstab, '/mnt/sysimage',
@@ -79,6 +83,7 @@ def runRescue(serial):
"Press <return> to get a shell. The system will reboot "
"automatically when you exit from the shell."),
[_("OK")] )
+ rootmounted = 1
except SystemError, msg:
ButtonChoiceWindow(screen, _("Rescue").
_("An error occured trying to mount some or all of your "
@@ -98,8 +103,9 @@ def runRescue(serial):
for file in [ "services", "protocols", "group" ]:
os.symlink('/mnt/runtime/etc/' + file, '/etc/' + file)
- print
- print _("Your system is mounted under the /mnt/sysimage directory.")
- print
+ if rootmounted:
+ print
+ print _("Your system is mounted under the /mnt/sysimage directory.")
+ print
os.execv("/bin/sh", [ "-/bin/sh" ])