Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345795 - sys-apps/openrc-0.6.4 not starting net-wireless/wpa_supplicant-0.7.2-r3
Summary: sys-apps/openrc-0.6.4 not starting net-wireless/wpa_supplicant-0.7.2-r3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords: InOverlay
: 346197 346259 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-16 19:59 UTC by Ben Sagal
Modified: 2010-11-21 18:23 UTC (History)
6 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 Ben Sagal 2010-11-16 19:59:03 UTC
After installing sys-apps/openrc-0.6.4 wpa_supplicant is not started when starting the new.wlan0 service. When downgraning to 0.6.3 it gats stated



Reproducible: Always




with 0.6.4:
-----------
% sudo /etc/init.d/net.wlan0 start
net.wlan0          | * Caching service dependencies ...                                                                                                    [ ok ]
net.wlan0          | * Bringing up interface wlan0
net.wlan0          | *   Starting ifplugd on wlan0 ...                                                                                                    [ ok ]
net.wlan0          | *     Backgrounding ...
net.wlan0          | * WARNING: net.wlan0 has started, but is inactive

with 0.6.3:
-----------
%sudo /etc/init.d/net.wlan0 start
net.wlan0          | * Bringing up interface wlan0
net.wlan0          | *   Starting wpa_supplicant on wlan0 ...                                                                                              [ ok ]
net.wlan0          | *   Starting wpa_cli on wlan0 ...                                                                                                     [ ok ]
net.wlan0          | *   Backgrounding ... ...
net.wlan0          | * WARNING: net.wlan0 has started, but is inactive
Comment 1 Ivan Iraci 2010-11-17 08:07:12 UTC
(In reply to comment #0)
> After installing sys-apps/openrc-0.6.4 wpa_supplicant is not started when
> starting the new.wlan0 service. When downgraning to 0.6.3 it gats stated

Same here.
Comment 2 Antonio Quartulli 2010-11-17 16:05:18 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > After installing sys-apps/openrc-0.6.4 wpa_supplicant is not started when
> > starting the new.wlan0 service. When downgraning to 0.6.3 it gats stated
> 
> Same here.
> 

Here too.
Any fix?
Comment 3 droide02 2010-11-17 16:58:44 UTC
Hello,
I have the same problem, but I try to add
  /etc/init.d/net.wlan0 restart
in /etc/conf.d/local and it doesn't work.


To solve this problem I unmerge ifplugd and restart my computer.
  emerge --unmerge sys-apps/ifplugd
  reboot
It's not the good way, but it works.
Comment 4 Ivan Iraci 2010-11-17 18:43:28 UTC
(In reply to comment #3)

> To solve this problem I unmerge ifplugd and restart my computer.
>   emerge --unmerge sys-apps/ifplugd
>   reboot
> It's not the good way, but it works.

Well, I unmerged ifplugd, emerged netplug and all is working fine.
So there must be some incompatibility between openrc-0.6.4 and ifplugd (which seems quite abandoned to me).
Maybe masking ifplugd in favor of netplug could have some sense.
Comment 5 Ben Sagal 2010-11-17 23:16:21 UTC
I have removed sys-apps/ifplugd and am now using the built in carrier detection in dhcpcd-5 which seems to work fine
Comment 6 Alon Bar-Lev 2010-11-18 14:03:37 UTC
The wpa_supplicant_pre_start is never called, the ifplugd is called before and takes ownership of the interface.
Comment 7 Alon Bar-Lev 2010-11-18 14:13:33 UTC
diff -urNp openrc-0.6.3/net/ifplugd.sh openrc-0.6.4/net/ifplugd.sh
--- openrc-0.6.3/net/ifplugd.sh 2010-09-02 18:15:17.000000000 +0300
+++ openrc-0.6.4/net/ifplugd.sh 2010-11-15 18:17:17.000000000 +0200
@@ -27,8 +27,8 @@ ifplugd_pre_start()
                return 0
        fi
 
-       # We don't work on bonded, bridges, tun/tap, vlan or wireless
-       for f in bond bridge tuntap vlan wireless; do
+       # We don't work on bonded, bridges, tun/tap or vlan
+       for f in bond bridge tuntap vlan; do
                if type "_is_${f}" >/dev/null 2>&1; then
                        if _is_${f}; then
                                veinfo "ifplugd does not work with ${f}"
Comment 8 Alon Bar-Lev 2010-11-18 14:19:03 UTC
Reverting hank of comment#7 solves the problem.

As there is no changelog I cannot know why someone thought ifplugd can handle wireless. Even if it does know how to handle wireless, it uses the old wireless extensions and not cfg8022.

Please revert.
Comment 9 William Hubbs gentoo-dev 2010-11-18 18:03:35 UTC
(In reply to comment #8)
> Reverting hank of comment#7 solves the problem.
> As there is no changelog I cannot know why someone thought ifplugd can handle
> wireless. Even if it does know how to handle wireless, it uses the old wireless
> extensions and not cfg8022.
> Please revert.

Here is the commit that introduced this change.

http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=4ea75dd1d6c1e475f103f027fd05861d237add4d

The bug is bug #335494.

So if I revert this, that bug comes back.  Does ifplugd not work for wireless interfaces?  If not I will do this revert.

Thanks,

William
Comment 10 Ben Sagal 2010-11-18 18:42:02 UTC
if as bug #335494 is correct, then when ifplugd detects the kill switch is off, it should run wpa_supplicant.
Comment 11 Alon Bar-Lev 2010-11-18 19:15:55 UTC
(In reply to comment #10)
> if as bug #335494 is correct, then when ifplugd detects the kill switch is off,
> it should run wpa_supplicant.
> 

Incorrect. ifplugd uses old wireless extensions and not suitable for newer cards that use cfg80211. Please revert.
Comment 12 William Hubbs gentoo-dev 2010-11-18 21:23:51 UTC
This has been reverted in the overlay, and this will be included in the next release.

Thanks,

William
Comment 13 Agostino Sarubbo gentoo-dev 2010-11-20 22:15:39 UTC
*** Bug 346197 has been marked as a duplicate of this bug. ***
Comment 14 Ben Sagal 2010-11-21 06:26:43 UTC
Should be kept open till there is a fix in the portage tree, as many people are not finding this bug report and making duplicates
Comment 15 Ben Sagal 2010-11-21 06:27:50 UTC
  Should be kept open till there is a fix in the portage tree, as many people are
not finding this bug report and making duplicates
Comment 16 wd 2010-11-21 10:31:20 UTC
*** Bug 346259 has been marked as a duplicate of this bug. ***
Comment 17 William Hubbs gentoo-dev 2010-11-21 18:23:49 UTC
openrc-0.6.5 is in portage.