1 |
On Monday 21 Dec 2015 23:49:02 Kai Krakow wrote: |
2 |
> Am Mon, 21 Dec 2015 23:20:24 +0000 |
3 |
> |
4 |
> schrieb Mick <michaelkintzios@×××××.com>: |
5 |
> > On Monday 21 Dec 2015 22:38:21 Alan McKinnon wrote: |
6 |
> > > On 22/12/2015 00:37, Mick wrote: |
7 |
> > > > Am I alone in experiencing this? Any ideas for fixing it? |
8 |
> > > > Should I post a bug and if so where? I'm thinking that asking |
9 |
> > > > Lennart to fix ifplugd so that it works with openrc would be |
10 |
> > > > taking it a step too far. :p |
11 |
> > > |
12 |
> > > read the news items for the last 3 months or so. |
13 |
> > > |
14 |
> > > openrc changes, networking and service dependencies have changed |
15 |
> > > somewhat, all well documented in the news items |
16 |
> > |
17 |
> > Thank you Alan, I believe I've read the news item you refer to, but I |
18 |
> > am not sure I understand how or why it applies to two laptops. The |
19 |
> > news item refers to localmount and netmount which if they cannot be |
20 |
> > mounted will cause problems. I don't use netmount on these laptops: |
21 |
> > |
22 |
> > # rc-update -s -v | grep mount |
23 |
> > |
24 |
> > localmount | boot |
25 |
> > |
26 |
> > mount-ro | shutdown |
27 |
> > netmount | |
28 |
> > |
29 |
> > localmount works and I see no failures in mounting my filesystems. |
30 |
> > What fails repeatably is ifplugd, which no longer starts wired or |
31 |
> > wireless devices. |
32 |
> |
33 |
> You could try running the service in debug mode (--debug), and look at |
34 |
> the line starting ifplugd. Check if the parameters look correct, then |
35 |
> try to fire the same command from command line and check the console |
36 |
> output for errors. |
37 |
|
38 |
ifplugd does not have a debug mode, but starting it by hand I see this: |
39 |
|
40 |
Dec 22 00:38:08 dell_xps ifplugd(eth0)[4982]: ifplugd 0.28 initializing. |
41 |
Dec 22 00:38:08 dell_xps ifplugd(eth0)[4982]: Using interface eth0 |
42 |
Dec 22 00:38:08 dell_xps ifplugd(eth0)[4982]: Failed to detect plug status of |
43 |
eth0 |
44 |
Dec 22 00:38:08 dell_xps ifplugd(eth0)[4982]: Exiting. |
45 |
|
46 |
Ha! It now assumes that I have an eth0 interface, which I don't. Hmm ... I |
47 |
wonder where it reads this from. |
48 |
|
49 |
If I start the NIC manually I get: |
50 |
|
51 |
Dec 22 00:33:52 dell_xps kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp11s0: link |
52 |
becomes ready |
53 |
Dec 22 00:35:31 dell_xps kernel: IPv6: ADDRCONF(NETDEV_UP): enp11s0: link is |
54 |
not ready |
55 |
Dec 22 00:35:30 dell_xps ifplugd(enp11s0)[4293]: ifplugd 0.28 initializing. |
56 |
Dec 22 00:35:30 dell_xps ifplugd(enp11s0)[4293]: Using interface |
57 |
enp11s0/00:26:B9:20:B4:9C with driver <tg3> (version: 3.137) |
58 |
Dec 22 00:35:30 dell_xps ifplugd(enp11s0)[4293]: Using detection mode: |
59 |
SIOCETHTOOL |
60 |
|
61 |
|
62 |
> By the way: Is ifplugd still needed? I thought it has been replacable |
63 |
> by openrcs improved hotplug/coldplug support a long time ago? I |
64 |
> remember my main purpose of using ifplugd back the days I still used it |
65 |
> was to decouple the network init latency from the rest of the boot |
66 |
> process and thus speed it up - in addition to the benefit of not |
67 |
> starting some services at all when no network was plugged in. |
68 |
|
69 |
Yes, ifplugd is needed here. Otherwise removal/insertion of the ethernet |
70 |
cable does not bring up/down the enp11s0 interface. |
71 |
|
72 |
|
73 |
> Part of the problem may be that udev handles device renaming and |
74 |
> bootstrapping now. Maybe ifplugd should be called from udev and no |
75 |
> longer be a service? In the end, ifplugd is tied to the device name - |
76 |
> and thus must be part of the device service it is going to manage. And |
77 |
> I don't think this is how it works in openrc nowadays. Thus it needs |
78 |
> to move deeper down the layer - which is udev. |
79 |
|
80 |
Thank you for pointing me in this direction. If ifplud now thinks that eth0 |
81 |
is the default interface, where might it be deducing this from? I installed |
82 |
sys-fs/udev-225 and dev-libs/libgudev-230 at the same time I updated openrc |
83 |
and this is when the problems started. |
84 |
|
85 |
I never had an ifplugd.conf in use, perhaps I ought to set up one now? |
86 |
|
87 |
|
88 |
> Alternatively, NetworkManager is probably also a good replacement then - |
89 |
> tho I totally understand why you wouldn't want to install it. At least |
90 |
> you wouldn't have to ask Lennart then for fixing ifplugd in openrc |
91 |
> if problems arise. ;-) |
92 |
> |
93 |
> As a side note: systemd-networkd handles and fits the same purpose as |
94 |
> ifplugd very well - should you consider to migrate to systemd. *scnr* |
95 |
> |
96 |
> It's also not by Lennart, which elevates your problems with asking |
97 |
> Lennart to fix something. :-) |
98 |
|
99 |
Thank you for this suggestion, but for reasons covered exhaustively and |
100 |
exhaustingly in a few past mega-threads I'd rather stay with openrc. |
101 |
|
102 |
-- |
103 |
Regards, |
104 |
Mick |