summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-09-03 15:50:28 -0400
committerChris Lumens <clumens@redhat.com>2009-09-30 11:59:17 -0400
commitd8670a7400b2aa737fb35a441895ba19192b09a8 (patch)
tree3659198b1c1da4b3e376c832909f14488ab1cb2e /yuminstall.py
parent47dac0c6f0207c11021d25c3de072907aeb1170e (diff)
downloadanaconda-d8670a7400b2aa737fb35a441895ba19192b09a8.tar.gz
anaconda-d8670a7400b2aa737fb35a441895ba19192b09a8.tar.xz
anaconda-d8670a7400b2aa737fb35a441895ba19192b09a8.zip
Pass the proxy config information to stage2.
We pass the URL and port as the --proxy= argument, and any authentication information through /tmp/proxy. This file will be removed by stage2. The reason for this song-and-dance is so passwords aren't on the anaconda command line.
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 7e6dc4e94..f86de3694 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1031,6 +1031,15 @@ plugins=1
reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anaconda.repos.d
""" % (anaconda.rootPath)
+ if anaconda.proxy:
+ buf += "proxy=%s\n" % anaconda.proxy
+
+ if anaconda.proxyUsername:
+ buf += "proxy_username=%s\n" % anaconda.proxyUsername
+
+ if anaconda.proxyPassword:
+ buf += "proxy_password=%s\n" % anaconda.proxyPassword
+
fd = open("/tmp/anaconda-yum.conf", "w")
fd.write(buf)
fd.close()