diff options
author | Chris Lumens <clumens@redhat.com> | 2009-09-03 15:50:28 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-09-30 11:59:17 -0400 |
commit | d8670a7400b2aa737fb35a441895ba19192b09a8 (patch) | |
tree | 3659198b1c1da4b3e376c832909f14488ab1cb2e /yuminstall.py | |
parent | 47dac0c6f0207c11021d25c3de072907aeb1170e (diff) | |
download | anaconda-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.py | 9 |
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() |