| Summary: | sys-apps/openrc: "coldplugged" wireless device requiring wpa_supplicant isn't initialized correctly during boot if /usr is on separate partition | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Slava Gorbunov <slava> |
| Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | notordoktor, roy |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Slava Gorbunov
2010-03-15 09:00:22 UTC
(In reply to comment #0) > correct solution (I suppose) is to load network rc modules after localmount. If your /usr isn't available and you have needed stuff there, you shouldn't have enabled hotplugging it in the first place. :) rc_hotplug="!net.wlan0" in /etc/rc.conf (or rc_need_wlan0="localmount" as you've already noted.) Why would you load networking stuff after localmount when all normal network stuff resides in / (In reply to comment #1) > If your /usr isn't available and you have needed stuff there, you shouldn't have enabled hotplugging it in the first place. :) rc_hotplug="!net.wlan0" in /etc/rc.conf I want my wifi card to: a) be automatically initialized when it is hotplugged after boot b) be automatically initialized during reboot or initial boot if it is plugged in (without manual remove-and-insert or restarting service) rc_hotplug="!net.wlan0" solves b, but breaks a. > (or rc_need_wlan0="localmount" as you've already noted.) This doesn't solve problem with initialization during system boot: network modules (those in /lib/rc/net) are scanned when net.wlan0 init script is started; but it is started early, BEFORE localmount - even if we specify rc_need_* - in this case, it just waits until localmount is started, then executes start() function; but network modules are scanned immediately after script is executed. > Why would you load networking stuff after localmount when all normal network > stuff resides in / I suppose, wpa_supplicant is considered "abnormal network stuff" :) It can't be easily relocated to / because it depends on libraries normally installed into /usr. Perhaps more correct solution is to add to /etc/conf.d/net ability to force usage of network module (even if required binary is not found). Together with rc_need_* it would solve my problem... (In reply to comment #2) > This doesn't solve problem with initialization during system boot: network > modules (those in /lib/rc/net) are scanned when net.wlan0 init script is > started; but it is started early, BEFORE localmount - even if we specify > rc_need_* - in this case, it just waits until localmount is started, then > executes start() function; but network modules are scanned immediately after > script is executed. Yeah, so it waits until the needed stuff is available and starts then... and the problem with this is where? Sound like it works exactly like it should. Maybe you should describe your problem with this in more detail? net.foo already has a need dependency. I don't see a problem here. (In reply to comment #4) > net.foo already has a need dependency. > I don't see a problem here. > need dependency on localmount that is. If you can still produce this with 0.6.1-r1 please reopen. As Roy has already stated the localmount depend is already there which makes this invalid as far as I see. |