Hello,

running the following version of Cobbler
# rpm -qa|grep cobbler
cobbler-2.2.1-1.el5
cobbler-web-2.2.1-1.el5
#

/var/lib/cobbler/snippets/post_install_network_config
312     #end if
313
314 ## Disable all eth interfaces by default before overwriting
315 ## the old files with the new ones in the working directory
316 ## This stops unneccesary (and time consuming) DHCP queries
317 ## during the network initialization
318 sed -i 's/ONBOOT=yes/ONBOOT=no/g' /etc/sysconfig/network-scripts/ifcfg-eth*
319
320 ## Move all staged files to their final location
321 rm -f /etc/sysconfig/network-scripts/ifcfg-*
322 mv /etc/sysconfig/network-scripts/cobbler/* /etc/sysconfig/network-scripts/
323 rm -r /etc/sysconfig/network-scripts/cobbler
324 if [ -f "/etc/modprobe.conf" ]; then
325 cat /etc/modprobe.conf.cobbler >> /etc/modprobe.conf
326 rm -f /etc/modprobe.conf.cobbler
327 fi
328 #end if
329 # End post_install_network_config generated code

The efffect of line 318 seems to be killed by line 321, so at next boot all the 
other network cards
are trying to boot with DHCP. So line 318 should be moved after line 323, 
correct?

Regards,
Stefan

Informatie van de Raad voor de rechtspraak, de rechtbanken, de gerechtshoven en 
de bijzondere colleges vindt u op www.rechtspraak.nl.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to