On Wed, Mar 25, 2009 at 11:13 AM, James Cammarata jimi@sngx.net wrote:
On Wed, 25 Mar 2009 17:46:57 +0000, Tom Brown tom@ng23.net wrote:
PXE requires dhcp. Thus the initial /etc/resolv.conf may be configured via dhcp, even with static IPs. If you continue to you use dhcp, after the build is completed, than that is source of the issue. FYI: You can configure the dhcp-client not to setup the /etc/resolv.conf
i dont - once the build happens dhcp is not used _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Add "chattr +i /etc/resolv.conf" to your snippet, that will prevent the file from getting changed after you write it :)
Just don't forget to "chattr -i" later.
Don't do that. I've got a snippet that sets the right timezone based on the "hostname" and put a trimmed down version on the wiki. You can use the same logic and put in your code: https://fedorahosted.org/cobbler/wiki/KickstartSnippets#ConfigureTimezoneBas...
Basicly use cheetah templating to split on the hostname and recognize the location you are in and then run some code.