Currently, the default kickstart snippets are written such that any
unknown distro names are handled as if they were Red Hat Enterprise
Linux 6. We've dealt with Fedora by mentioning it explicitly in the
templates when necessary.
That's worked OK up until now, but there's likely to be a CentOS 7 beta
some time in the next few months, and the handling of that and other Red
Hat Enterprise Linux 7 derivatives means that this isn't going to work
any more, since we can't hardcode special case handling of every
possible derivative.
The simplest resolution I have been able to come up with is the following:
1. Add a "base_distro" context variable in the kickstart rendering. By
default, this is the same as "distro".
2. Update the kickstart snippets to use base_distro rather than distro
3. Add an optional "base_distro" field to our distro records. If that is
set, base_distro in the template rendering context is to that rather
than yo the same thing as distro.
It's too late to get that into 0.16, but we could do it for 0.17.
Does anyone see a simpler way to resolve the problem? If not, I'll
create an RFE for this and allocate it to 0.17.
Cheers,
Nick.
--
Nick Coghlan
Red Hat Hosted & Shared Services
Software Engineering & Development, Brisbane
Testing Solutions Team Lead
Beaker Development Lead (
http://beaker-project.org/)