On Tue, Jun 02, 2009 at 11:47:54AM -0400, Michael DeHaan wrote:
> Tom Brown wrote:
> >>> $ more /etc/modprobe.conf
> >>>
> >>> options bonding max_bonds=2
> >>>     
> >>>       
> >> did you add this or did cobbler?
> >>
> >>   
> >>     
> >
> > # Start post_install_network_config generated code
> > if [ -f "/etc/modprobe.conf" ]; then
> >     echo "options bonding max_bonds=2" >> /etc/modprobe.conf
> > fi
> >
> > so cobbler did
> >   
> 
> Yes, that appears to be in the snippet.
> 
> Are we saying that needs to change?
> 
> jcapel is the resident bonding snippet expert.
> 
> 

That really only should be done for RHEL/CentOS4.  Something like this
*might* fix it (I'm not that familiar with cobbler's code)?

diff --git a/snippets/post_install_network_config 
b/snippets/post_install_network_config
index 2970666..206e2c7 100644
--- a/snippets/post_install_network_config
+++ b/snippets/post_install_network_config
@@ -35,9 +35,11 @@
     #set $i = 0
     ## setup bonding if we have to
     #if $numbondingdevs > 0
+            #if $osversion == "rhel4"
 if [ -f "/etc/modprobe.conf" ]; then
     echo "options bonding max_bonds=$numbondingdevs" >> /etc/modprobe.conf
 fi 
+            #end if
     #end if
     ## 
=============================================================================
     ## create a staging directory to build out our network scripts into

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to