Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 524788

Summary: net-dns/avahi: autoipd module script needs to be deployed to <libdir>/netifrc/net
Product: Gentoo Linux Reporter: Dihan Wickremasuriya <nayomal>
Component: [OLD] UnspecifiedAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Deploy autoipd module to /lib/netifrc/net in avahi ebuild

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