summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2012-10-10 16:06:39 -0700
committerJesse Keating <jkeating@redhat.com>2012-10-10 17:34:49 -0700
commitb166b5be7908b64da03753ae0ed8bcf001a2c532 (patch)
treed49a4962e7ea83557063ec092661fcbcd7e03c94 /anaconda
parent64fb95ed76d4f6515c944727e2d866294fee02f5 (diff)
downloadanaconda-b166b5be7908b64da03753ae0ed8bcf001a2c532.tar.gz
anaconda-b166b5be7908b64da03753ae0ed8bcf001a2c532.tar.xz
anaconda-b166b5be7908b64da03753ae0ed8bcf001a2c532.zip
Don't crash when running anaconda a second time
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).
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda5
1 files changed, 4 insertions, 1 deletions
diff --git a/anaconda b/anaconda
index cf3758c46..90fad452f 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)