diff options
author | Jesse Keating <jkeating@redhat.com> | 2012-10-10 16:06:39 -0700 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2012-10-10 17:34:49 -0700 |
commit | b166b5be7908b64da03753ae0ed8bcf001a2c532 (patch) | |
tree | d49a4962e7ea83557063ec092661fcbcd7e03c94 /anaconda | |
parent | 64fb95ed76d4f6515c944727e2d866294fee02f5 (diff) | |
download | anaconda-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-x | anaconda | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |