On 05/15/2009 06:28 AM, Jeff Schroeder wrote:
And another completely different angle would be to try and make the snippets multi-distro. That is also doable but might require us writing a KVM based test harness to not break things. I've done this before and it is totally doable for the smart people on this list.
I thought of that, but some snippets are pretty complex as they are already. I'd hate to have to increase the complexity in post_install_network_config for example, so I'd rather have one for each distro as this would save us from the very likely scenario that while someone's fixing debian functionality, he (unintentionally of course :P) breaks it for Red Hat. And the more distros one snippet is going to support, the harder it gets.
An multiconditional if statement that looked for /etc/redhat-release, / etc/lsb-release, /etc/debian_version, or /etc/SuSE-release would cover all of the cobbler supported distributions right now.
This is a bit more work, but has the benefit of not canging anything and not needing symlink hacks in the rpm %post.
Sent from my iPhone