[PATCH 4/4] Don't crash when running anaconda a second time

Jesse Keating jkeating at redhat.com
Wed Oct 10 23:12:56 UTC 2012


This keeps the ugly hack going, but it keeps us from crashing on the
s390 case where anaconda gets launched twice (once to prompt for ssh,
once inside tmux to do the actual install).
---
 anaconda | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/anaconda b/anaconda
index cf3758c..90fad45 100755
--- a/anaconda
+++ b/anaconda
@@ -138,10 +138,13 @@ def setupPythonUpdates():
     from distutils.sysconfig import get_python_lib
 
     # Temporary hack for F18 alpha to symlink updates and product directories
-    # into tmpfs.  To be removed after alpha in order to directly use content
+    # into tmpfs.  To be removed after beta in order to directly use content
     # from /run/install/ -- JLK
     for dirname in ("updates", "product"):
         if os.path.exists("/run/install/%s" % dirname):
+            if os.path.islink("/tmp/%s" % dirname):
+                # Assume updates have already been setup
+                return
             os.symlink("/run/install/%s" % dirname,
                        "/tmp/%s" % dirname)
 
-- 
1.7.11.4



More information about the anaconda-patches mailing list