Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56856 - Broken /etc/conf.d/net in rc-scripts 1.5.1 and rc-scripts CVS
Summary: Broken /etc/conf.d/net in rc-scripts 1.5.1 and rc-scripts CVS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High major
Assignee: Gentoo's Team for Core System packages
URL: http://dev.gentoo.org/~agriffis/rc-sc...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-07-12 20:43 UTC by Brad Davidson
Modified: 2004-10-05 08:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to /etc/conf.d/net (net.diff,5.14 KB, patch)
2004-07-12 23:07 UTC, Brad Davidson
Details | Diff
Another patch (net.diff,5.17 KB, patch)
2004-07-12 23:24 UTC, Brad Davidson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Davidson 2004-07-12 20:43:42 UTC
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.
Comment 1 Brad Davidson 2004-07-12 23:07:13 UTC
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.
Comment 2 Brad Davidson 2004-07-12 23:24:13 UTC
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.
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-08-01 15:24:42 UTC
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.
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2004-08-02 13:09:18 UTC
baselayout-1.10.2 released