summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-07-09 15:06:59 +0000
committerJeremy Katz <katzj@redhat.com>2004-07-09 15:06:59 +0000
commit2859428a3bc3177c6b8c030252b51d5563fdadd8 (patch)
tree79784f3da61d4bfd827a0e0582127427afc845d7
parentbfb905cf581a4095b6a5f662e9db712e1d45cb73 (diff)
downloadanaconda-2859428a3bc3177c6b8c030252b51d5563fdadd8.tar.gz
anaconda-2859428a3bc3177c6b8c030252b51d5563fdadd8.tar.xz
anaconda-2859428a3bc3177c6b8c030252b51d5563fdadd8.zip
don't traceback if we fail to create symlinks for rescue mode stuff
(#127530)
-rw-r--r--rescue.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/rescue.py b/rescue.py
index f7c6ecde0..7a914de68 100644
--- a/rescue.py
+++ b/rescue.py
@@ -164,7 +164,10 @@ def runRescue(instPath, mountroot, id):
for file in [ "services", "protocols", "group", "joe", "man.config",
"nsswitch.conf", "selinux" ]:
- os.symlink('/mnt/runtime/etc/' + file, '/etc/' + file)
+ try:
+ os.symlink('/mnt/runtime/etc/' + file, '/etc/' + file)
+ except:
+ pass
# see if they would like networking enabled
if not methodUsesNetworking(id.methodstr):