diff options
author | Mike Fulbright <msf@redhat.com> | 2001-01-24 17:05:24 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-01-24 17:05:24 +0000 |
commit | cddb9dfb7ea0f9616a0735e434a596331a67ec9d (patch) | |
tree | 8349e3b8cb2370e001c3f0521d04d32979c06c71 /rescue.py | |
parent | 2dde15e507cf076c6d8676e928c5b9adf87ac2d2 (diff) | |
download | anaconda-cddb9dfb7ea0f9616a0735e434a596331a67ec9d.tar.gz anaconda-cddb9dfb7ea0f9616a0735e434a596331a67ec9d.tar.xz anaconda-cddb9dfb7ea0f9616a0735e434a596331a67ec9d.zip |
fixed traceback
Diffstat (limited to 'rescue.py')
-rw-r--r-- | rescue.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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" ]) |