FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 11-05-2010, 08:44 PM
"Brian C. Lane"
 
Default 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 11-05-2010, 09:25 PM
Chris Lumens
 
Default Fix variable substitution in kickstart files

> 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
>

Looks good to me. Thanks for finding the magic line.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org