From 2859428a3bc3177c6b8c030252b51d5563fdadd8 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Fri, 9 Jul 2004 15:06:59 +0000 Subject: don't traceback if we fail to create symlinks for rescue mode stuff (#127530) --- rescue.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rescue.py') 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): -- cgit