1 |
On Sun, 26 Feb 2012 15:19:54 +0100 |
2 |
Willie WY Wong <wongwwy@××××××××××.org> wrote: |
3 |
|
4 |
> On Sun, Feb 26, 2012 at 10:35:35AM +0100, Penguin Lover Willie WY |
5 |
> Wong squawked: |
6 |
> > Can someone help me figure out how to find the offending initscript |
7 |
> > that is needlessly calling dhcpcd? |
8 |
> |
9 |
> Apparently the culprit is /etc/init.d/netmount |
10 |
> I am not sure how it got into the default run level, since I don't use |
11 |
> any network file systems on my netbook. |
12 |
|
13 |
I believe the problem is much deeper than that and while your |
14 |
observations are valid, you don't have a root cause yet. You just have |
15 |
a happy symptom that works with your specific configuration. |
16 |
|
17 |
Here's what I've found after much up & down-grading and rebooting: |
18 |
|
19 |
First, I've had netmount in the default runlevel for ages and it's |
20 |
worked for ages even though it does nothing. |
21 |
Second, openrc has been launching "dhcpcd -q" at boot time for ages and |
22 |
this has never interfered with wicd which comes along later. |
23 |
|
24 |
openrc-0.8.* always works with any kernel version |
25 |
openrc-0.9* work with kernel-3.2.5 |
26 |
|
27 |
openrc-0.9* does not work with kernel-3.2.6, giving these errors: |
28 |
|
29 |
Feb 26 17:16:53 khamul dhcpcd[2661]: wlan0: leased 172.20.0.41 for |
30 |
43200 seconds |
31 |
Feb 26 17:16:53 khamul avahi-daemon[2479]: Joining mDNS multicast group |
32 |
on interface wlan0.IPv4 with address 172.20.0.41. |
33 |
Feb 26 17:16:53 khamul avahi-daemon[2479]: New relevant interface |
34 |
wlan0.IPv4 for mDNS. |
35 |
Feb 26 17:16:53 khamul avahi-daemon[2479]: Registering new address |
36 |
record for 172.20.0.41 on wlan0.IPv4. |
37 |
Feb 26 17:16:54 khamul dhcpcd[2661]: eth0: sending IPv6 Router |
38 |
Solicitation |
39 |
Feb 26 17:16:54 khamul dhcpcd[2661]: eth0: sendmsg: Network is |
40 |
unreachable |
41 |
Feb 26 17:16:55 khamul dhcpcd[4388]: sending commands to master dhcpcd |
42 |
process |
43 |
Feb 26 17:16:55 khamul dhcpcd[2661]: control command: /sbin/dhcpcd -k |
44 |
wlan0 |
45 |
Feb 26 17:16:55 khamul dhcpcd[2661]: wlan0: releasing lease of |
46 |
172.20.0.41 |
47 |
Feb 26 17:16:55 khamul avahi-daemon[2479]: Withdrawing address record |
48 |
for 172.20.0.41 on wlan0. |
49 |
Feb 26 17:16:55 khamul avahi-daemon[2479]: Leaving mDNS multicast group |
50 |
on interface wlan0.IPv4 with address 172.20.0.41. |
51 |
Feb 26 17:16:55 khamul avahi-daemon[2479]: Interface wlan0.IPv4 no |
52 |
longer relevant for mDNS. |
53 |
Feb 26 17:16:55 khamul dhcpcd[2661]: wlan0: open_udp_socket: Cannot |
54 |
assign requested address |
55 |
Feb 26 17:16:55 khamul kernel: [ 58.240866] wlan0: deauthenticating |
56 |
from 00:04:ed:45:65:df by local choice (reason=3) |
57 |
|
58 |
That looks to me like avahi is all confused and tripping over what |
59 |
openrc & wicd do properly. I'd say the root cause is a change in |
60 |
kernel-3.2.6 that was not tested against. |
61 |
|
62 |
So, what's the next debugging step? |
63 |
|
64 |
|
65 |
-- |
66 |
Alan McKinnnon |
67 |
alan.mckinnon@×××××.com |