[master/rhel7 2/2] Write sslverify=0 for url kickstart method (#1116858)

Brian C. Lane bcl at redhat.com
Thu Aug 14 22:16:53 UTC 2014


When the url method included --noverifyssl it wasn't writing sslverify=0
to the yum configuration file for the base repo because the attribute is
on the yum repo as .sslverify instead of a kickstart repo obj with
.noverifyssl

Resolves: rhbz#1116858
---
 pyanaconda/packaging/yumpayload.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 03faa52..f7bef8b 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -328,6 +328,9 @@ reposdir=%s
                     os.unlink(cfg_path)
                     continue
 
+                if not ks_repo and not repo.sslverify:
+                    f.write("sslverify=0\n")
+
                 # kickstart repo modifiers
                 if ks_repo:
                     if ks_repo.noverifyssl:
-- 
1.9.3



More information about the anaconda-patches mailing list