Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417899 - openrc-0.9.8.4 net.example suggests wrong setting to prefer ifconfig over iproute2
Summary: openrc-0.9.8.4 net.example suggests wrong setting to prefer ifconfig over ipr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: OpenRC Team
URL:
Whiteboard: openrc:oldnet
Keywords:
Depends on:
Blocks: 417391
  Show dependency tree
 
Reported: 2012-05-28 00:50 UTC by vsync
Modified: 2013-04-25 23:08 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vsync 2012-05-28 00:50:08 UTC
From /usr/share/doc/openrc-0.9.8.4/net.example.bz2:

    # Prefer ifconfig over iproute2
    #modules="ifconfig"

However this doesn't seem to work if the iproute2 package is installed on the system at all (as reflected in the "MODULES" section description; but based on the "prefer" comment I assumed loading the ifconfig module would force its usage).

Therefore the comment should be updated to clarify that loading the ifconfig module only makes it available but to ensure that it is used iproute2 must be disabled as well.

Perhaps:

    # Prefer ifconfig over iproute2
    #modules="ifconfig !iproute2"

Thanks,
Tim
Comment 1 William Hubbs gentoo-dev 2012-05-28 19:02:03 UTC
(In reply to comment #0)
> From /usr/share/doc/openrc-0.9.8.4/net.example.bz2:
> 
>     # Prefer ifconfig over iproute2
>     #modules="ifconfig"
> 
> However this doesn't seem to work if the iproute2 package is installed on
> the system at all (as reflected in the "MODULES" section description; but
> based on the "prefer" comment I assumed loading the ifconfig module would
> force its usage).
> 
> Therefore the comment should be updated to clarify that loading the ifconfig
> module only makes it available but to ensure that it is used iproute2 must
> be disabled as well.
> 
> Perhaps:
> 
>     # Prefer ifconfig over iproute2
>     #modules="ifconfig !iproute2"

Actually, it is more simple than that. If you don't want to use iproute2 at all, the modules line is just:

#modules="!iproute2"

The preference order is automatic based on which packages you have installed, so if iproute2 is installed it will be used unless you disable it.
Comment 2 William Hubbs gentoo-dev 2012-06-07 04:34:51 UTC
This is fixed in commit 92b274a.
Thanks for the report.