The latest rc-scripts package (1.5.1) contains a broken /etc/conf.d/net. The (pre|post)(up|down) scripts are commented out, and do not contain a hook to the bonding functions. There is a net.rej file included in the tarball that contains an uncommented version of the aforementioned functions, along with a duplicate of the existing bonding, mac-change, and link-detect functions. It looks like nobody noticed that the net patch failed before publishing the new version. I emerged the latest baselayout on a system whose only connection to the network was a pair of bonded NICs, and after reboot it failed to come up on the network. bond0 was created and assigned an IP address, but the postup_bonding function was never called to slave interfaces to bond0.
Created attachment 35286 [details, diff] Patch to /etc/conf.d/net Possible patch. Uncommented the pre/post sections, added links to the bond functions. Also moved the bond0 configurations out of the function sections, to configuration sections below the vlan options.
Created attachment 35287 [details, diff] Another patch Let's try this again... added a return so that Bash doesn't complain about a function with no code.
Thanks for pointing out the net.rej file. I've gotten rid of that and integrated the missed items. Regarding the commented out functions, that is intentional since that section is only intended for advanced users who are expected to uncomment the appropriate functions. In an upcoming baselayout/rc-scripts the functions will be moved to their own directory and out of conf.d/net where they really don't belong.
baselayout-1.10.2 released