Jasper Capel wrote:
Michael DeHaan wrote:
> Jasper Capel wrote:
>
>> Michael DeHaan wrote:
>>
>>
>>> As the existing /var/lib/cobbler/snippets/network_config already adds
>>> "network --blah..." lines to the kickstart file, won't
including them
>>> again from the %include cause problems? It would seem one snippet needs
>>> to know about other, or does the second network_config snippet (for the
>>> main body of the kickstart) get replaced by the include?
>>>
>>> --Michael
>>>
>>>
>>>
>> I patched the network_config snippet to know about the
>> pre_install_network_config snipet. It now does one of two things:
>> * If the user provided MAC-addresses for all physical network
>> interfaces, include the information the pre_install_network_config
>> snippet generated
>> * If not, just use the old method
>>
>> Jasper
>> _______________________________________________
>> cobbler mailing list
>> cobbler(a)lists.fedorahosted.org
>>
https://fedorahosted.org/mailman/listinfo/cobbler
>>
>>
> Merged, thanks.
>
> FYI -- you will also want to update "kickstarts/*.ks" in the checkout so
> that these are used by default. I think the underlying voodoo of what
> snippets to use where is a bit complex to get users to insert them, so
> if it all "just works" out of the box that's probably better.
>
>
It was already done for sample.ks, but I've also applied the changes to
legacy.ks and sample_end.ks (although I'm not sure what they're used for).
Jasper
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
sample_end.ks -- used for Fedora 9 and later, when "validateks" warns
that sections with "%end" sections in kickstart will become deprecated.
legacy.ks --------- used for EL 4 and before, which did not support yum,
and can't use the $yum_repo_stanza and $yum_repo_config macros without
breaking the installation.
Import assigns the best one based on the distribution so Anaconda is
functioning after import without the user having to create profiles and
kickstarts from scratch.
--Michael