summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-08-30 19:34:01 +0000
committerJeremy Katz <katzj@redhat.com>2004-08-30 19:34:01 +0000
commita14c98bed8e00a4d515417ccaf8be16f08a89d0e (patch)
treef1edea941e51a826b0081e3156cfe35314aecc9c /rescue.py
parent8db26c7e6dfefe5d036036b8dbb65ccd17197806 (diff)
downloadanaconda-a14c98bed8e00a4d515417ccaf8be16f08a89d0e.tar.gz
anaconda-a14c98bed8e00a4d515417ccaf8be16f08a89d0e.tar.xz
anaconda-a14c98bed8e00a4d515417ccaf8be16f08a89d0e.zip
fix traceback in rescue mode on weird cases so that they at least
get a shell (#131297)
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/rescue.py b/rescue.py
index 7a914de68..6ff541d61 100644
--- a/rescue.py
+++ b/rescue.py
@@ -422,7 +422,10 @@ def runRescue(instPath, mountroot, id):
print
if rootmounted and not readOnly:
makeMtab(instPath, fs)
- makeResolvConf(instPath)
+ try:
+ makeResolvConf(instPath)
+ except Exception, e:
+ log("error making a resolv.conf: %s" %(e,))
print _("Your system is mounted under the %s directory.") % (instPath,)
print