Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198722 - sys-apps/baselayout-2.0.0_rc6: wpa_supplicant broken vor wired networks, timeouts dysfunctional?
Summary: sys-apps/baselayout-2.0.0_rc6: wpa_supplicant broken vor wired networks, time...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-10 18:11 UTC by Jan Anders
Modified: 2008-03-31 16:32 UTC (History)
0 users

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 Jan Anders 2007-11-10 18:11:25 UTC
My desktop that has to authenticate via 801.X with wpa_supplicant before being allowed to communicate on the switchport. My girlfriend using an older version of baselayout (can't check which one, propably 1.?, hardware crash :() had it working correctly with the following in /etc/conf.d/eth0:

 config_eth0=( "dhcp" )
 modules=( "wpa_supplicant" )
 wpa_timeout_eth0=60
 wpa_supplicant_eth0="-Dwired"

I never got it working with my system, so I decided to upgrade to baselayout 2. But the baselayout network module /lib/rc/net/wpa_supplicant.sh contains a line 
checking for wireless proc entries (_is_wireless || return 0) - which of course fails, since I have only wired network cards. If I comment out that line, it correctly starts wpa_supplicant, but does not finish- it backgrounds the wpa_supplicant process, but never starts the dhcpcd. I tried to understand the script, and I think the timeout parameter is not evaluated at all.
Manually performing these steps work fine, and the parameters used by the script (as shown with --debug) are correct.

Reproducible: Always

Steps to Reproduce:
1. configure a wired interface in conf.d/net for wpa_supplicant use
2. restart networking on the interface

Actual Results:  
# /etc/init.d/net.eth0 --verbose start
 * Bringing up interface eth0
 *   Loaded modules: apipa arping tuntap ccwgroup macchanger macnet wpa_supplicant ssidnet iproute2 pppd system dhcpcd ip6to4
 *   Configuring eth0 for MAC address 00:16:76:D8:67:8A ...                                                                                                                  [ ok ]
 *   Starting wpa_supplicant on eth0 ...
 *   Detaching to start `/usr/sbin/wpa_supplicant' ...                                                                                                                       [ ok ]
 *   Starting wpa_cli on eth0 ...
 *   Detaching to start `/usr/bin/wpa_cli' ...                                                                                                                               [ ok ]
 *   Backgrounding ... ...
 * WARNING: net.eth0 has started, but is inactive


Expected Results:  
After successfully authenticating, the interface module should try to get an dhcp lease.

conf.d/net:
 modules="wpa_supplicant"
 wpa_supplicant_eth0="-Dwired"
 wpa_timeout_eth0=30
 config_eth0="dhcp"
Comment 1 Ryan Neufeld 2007-11-15 02:59:06 UTC
Please read the new /etc/conf.d/net.example for the new method of configuring your networking services.
Comment 2 Gabriel Devenyi 2008-02-28 20:03:47 UTC
If you're still running baselayout-2, you should look into OpenRC, Roy Marples (the baselayout-2 guy) recently left gentoo but took that project with him.

http://roy.marples.name/openrc
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2008-03-31 16:32:12 UTC
Fixed in OpenRC.