Yes that makes sense! Thanks!
----- Original Message -----
From: "Jasper Capel" <jcapel(a)redhat.com>
To: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
Sent: Friday, February 12, 2010 1:30:19 PM GMT -05:00 US/Canada Eastern
Subject: Re: Repo priorities?
----- "Scot Floess" <sfloess(a)redhat.com> wrote:
So, this is a stupid question - but how does this find the correct
(latest) rpm as opposed to defining in %packages?
What the priority setting does is basically just write out the yum repo configuration like
this:
[myreponame]
name=foo
baseurl=http://bar
priority=1
The "priority" setting is not handled by yum. It is the yum-priorities plugin
that actually does something with this.
During installation, the yum shipped with anaconda is used, this yum does not include the
yum-priorities plugin, neither does anaconda understand any priority parameter to the
"repo" setting in the kickstart file. That is why this only works when:
1) you installed yum-priorities, and
2) you install the desired packages that should take into account priorities in the %post
section.
Everything in %post runs in a chroot in the newly installed system, thus it is using the
new system's yum instead of the yum that's in anaconda.
I hope this makes it a bit more clear. :)
Cheers,
Jasper
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
--
Make It So Number One