[PATCH rhel7-branch] Allow specifying an environment in the kickstart file (#1050994).

Adam Williamson awilliam at redhat.com
Tue Feb 4 21:33:50 UTC 2014


On Tue, 2014-02-04 at 16:42 +0100, David Shea wrote:
> On 02/04/2014 04:26 PM, Chris Lumens wrote:
> >> I'm worried about overloading the group syntax instead of using the
> >> @^ environment group yum syntax uses, since we're going to end up
> >> with a group and an environment with the same ID at some point. RHEL
> >> makes me especially nervous, since they don't always follow the
> >> convention of using -environment in the environment IDs there. Yum
> >> makes no attempt to look up environments when you give it @whatever,
> >> so I think we should stick with that.
> > Sigh, yes, I can redo this to use some silly @^ syntax I don't remember
> > anyone ever talking to me about.  It just means I get to clone the bug
> > for pykickstart and track down approval for that too.
> >
> > If you note, I'm not assuming "-environment" anywhere, just looking up
> > to see if a group is in the environments list or not.
> 
> I just meant that the names in /comps/group/id might conflict with the 
> names in /comps/environment/id, not that we should modify or care about 
> anything in the strings. But now that I look at it, it seems that 
> they've cleaned all that and that yum groupinstall looks for both groups 
> and environments, so whatever, if there's a conflict it's comps's fault.

"yum groupinstall foo" will look for either an environment group or
group called 'foo' (I don't recall which it prefers).
"yum install @foo" will look for *only* a group called foo.
"yum install @^foo" will look for *only* an environment group called
foo.

yum's syntax (and, for that matter, code - the two different syntaxes
above are actually backed by *entirely different functions*,
reimplementing the same thing in different ways, because
$dumb_historical_reasons) in this area is a hell of a mess, and probably
not the best reference for 'good practice' - I'd be more inclined to
look at what dnf does than what yum does.
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net
http://www.happyassassin.net



More information about the anaconda-patches mailing list