Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524788 - net-dns/avahi: autoipd module script needs to be deployed to <libdir>/netifrc/net
Summary: net-dns/avahi: autoipd module script needs to be deployed to <libdir>/netifrc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-09 00:57 UTC by Dihan Wickremasuriya
Modified: 2014-10-10 01:51 UTC (History)
0 users

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


Attachments
Deploy autoipd module to /lib/netifrc/net in avahi ebuild (fix-autopid-module.patch,479 bytes, patch)
2014-10-09 00:57 UTC, Dihan Wickremasuriya
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dihan Wickremasuriya 2014-10-09 00:57:27 UTC
Created attachment 386262 [details, diff]
Deploy autoipd module to /lib/netifrc/net in avahi ebuild

The network modules directory has changed from /lib/rc/net to /lib/netifrc/net after the network component was moved out to the netifrc package. This makes the network configuration fail when attempting to fallback to autoipd.

To reproduce modify /etc/conf.d/net as follows replacing eth0 with any network interface on the system:

modules="autoipd"
dhcpcd_eth0="-t 5 --noipv4ll"
config_eth0="dhcp"
fallback_eth0="autoipd"

Make sure the network interface used in the above configuration is disconnected from the network and restart net.eth0. autoipd configuration will fail with the following console output:

 * Bringing up interface eth0
 *   dhcp ...
 *     Running dhcpcd ...
dhcpcd[<pid>]: version 6.4.3 starting
dhcpcd[<pid>]: eth0: adding address <ipv6 address>
dhcpcd[<pid>]: eth0: waiting for carrier
dhcpcd[<pid>]: timed out
dhcpcd[<pid>]: exited
 *   Trying fallback configuration autoipd
 *   autipd ...
 *     nothing provides `autoipd'
 * ERROR: net.eth0 failed to start


The attached patch (on top of avahi-0.6.31-r5 for brevity) deploys the autoipd.sh module script to /lib/netifrc/net which fixes this issue.
Comment 1 Anthony Basile gentoo-dev 2014-10-09 11:06:08 UTC
Thanks for catching this.  I've pushed it out in avahi-0.6.31-r6.ebuild.  Please test it.
Comment 2 Dihan Wickremasuriya 2014-10-10 01:51:34 UTC
Thanks Anthony! Tested after merging 0.6.31-r6 in today's portage snapshot and it works:

 * Bringing up interface eth0
 *   dhcp ...
 *     Running dhcpcd ...
dhcpcd[<pid>]: version 6.4.3 starting
dhcpcd[<pid>]: eth0: adding address <ipv6 address>
dhcpcd[<pid>]: eth0: waiting for carrier
dhcpcd[<pid>]: timed out
dhcpcd[<pid>]: exited
 *   Trying fallback configuration autoipd
 *   autipd ...
 *     Starting avahi-autoipd ...
 *     received address