[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Fix variable substitution in kickstart files



When creating repos from kickstart files the yumvar dict needs to be
passed to it, otherwise variable substitution in urls will not work.
---
 pyanaconda/yuminstall.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 437fd16..f811ac6 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -813,6 +813,7 @@ class AnacondaYum(yum.YumBase):
                     ksrepo.baseurl = "file://%s" % dest
 
                 repo = AnacondaYumRepo(ksrepo.name)
+                repo.yumvar.update(self.conf.yumvar)
                 repo.mirrorlist = ksrepo.mirrorlist
                 repo.name = ksrepo.name
 
-- 
1.7.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]