On 02/27/2014 01:48 PM, Nick Coghlan wrote:
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:
- 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.
It occurs to me that this approach would need another tweak: allowing Distro entries to be created directly, since you would still want to be able to say that CentOS7 (for example) was derived from RedHatEnterpriseLinux7, even if you didn't have an RHEL 7 trees loaded into your Beaker instance. I'm open to other ways to tackle the problem that would avoid needing to do that, though.
Cheers, Nick.