Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249602 - With wpa_supplicant, maybe RC_NET_STRICT_CHECKING="lo" in /etc/conf.d/rc should be recommended.
Summary: With wpa_supplicant, maybe RC_NET_STRICT_CHECKING="lo" in /etc/conf.d/rc shou...
Status: RESOLVED WONTFIX
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-02 10:52 UTC by Mike Richman
Modified: 2009-02-11 09:22 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 Mike Richman 2008-12-02 10:52:33 UTC
After switching from wireless-tools to wpa_supplicant, network
services such as sshd no longer reliably start during boot.  The issue
seems to be that network service init scripts can't tell whether
wpa_supplicant has established a connection since it runs in the
background, or they just assume that it has not. After some Googling,
I found that setting

	RC_NET_STRICT_CHECKING="lo"

solves the problem: sshd now starts at boot every time.

My request:  perhaps this could be suggested as part of the
configuration process for wpa_supplicant in the Gentoo Wireless
Networking documentation.


Reproducible: Always

Steps to Reproduce:
1. Configure networking with wireless-tools.
2. Enable sshd.
3. Switch to wpa_supplicant.

Actual Results:  
sshd does not start at boot.

Expected Results:  
Under proper configuration, sshd should start at boot.

$ sudo lspci | grep Network
02:0a.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)

$ sudo wpa_supplicant -v
wpa_supplicant v0.5.7
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2008-12-02 11:02:37 UTC
Yes, I've spoken with Uberlord (the author of openrc) and was suggested basically the same. Adding openrc maintainers for comment *AND* for update of the documentation in the openrc oncifguration file.
Comment 2 Roy Marples 2008-12-02 12:27:40 UTC
OpenRC has no such value anymore.
Due to improvements in wpa_supplicant and similar progams I have no problem with the default for baselayout-1 and associated documentation being changed.
Comment 3 nm (RETIRED) gentoo-dev 2008-12-02 18:20:22 UTC
I don't think we should change the docs for this one incident. I've always used wpa_supplicant, and using "lo" would result in utter failure for me. As mentioned in our handbook, use "lo" if you don't care about any particular interface being considered "up" at boot time.

This means that if I'm on a wireless connection but use "lo" instead of "wlan0", my wired NIC could be brought up, halting the system boot while the DHCP requests time out. Yeah, that's not ideal.

The only type of setup that needs just "lo" for a multi-NIC laptop would be one that uses net-misc/wicd, since that ups the interface on its own, and you don't want the usual initscripts interfering. But again, that's more of an edge case.
Comment 4 Mike Richman 2008-12-02 18:39:58 UTC
On my system, wpa_supplicant would do its work in the background.  I
would have my wireless NIC up immediately after boot, but sshd would
never get started.  Making this change is the only way I've found to
make sure I can rely on sshd, but it sounds like if I had a wired
connection as well, this would cause problems.  Is there a preferred
way to handle the situation?
Comment 5 nm (RETIRED) gentoo-dev 2009-02-11 09:22:26 UTC
Closing as per comment #3 and comment #2 -- hopefully openrc will be going stable soon, which obviates the need to talk about baselayout-1 edge cases.

Regarding comment #4, your best bet is to check on the Gentoo forums, or the gentoo-user ML archives; it may have been answered already.