1 |
On Friday 16 May 2014 11:43:41 Samuli Suominen wrote: |
2 |
> On 15/05/14 02:59, Grant wrote: |
3 |
> >>>>>>> I'm having a problem starting the USB network interfaces properly |
4 |
> >>>>>>> on one of my systems. I brought the problem to the udev list and |
5 |
> >>>>>>> they're indicating that it's a Gentoo problem: |
6 |
> >>>>>>> |
7 |
> >>>>>>> https://www.mail-archive.com/systemd-devel@×××××××××××××××××.org/ms |
8 |
> >>>>>>> g18840.html |
9 |
> >>>>>>> |
10 |
> >>>>>>> Should I file a bug? |
11 |
> >>>>>>> |
12 |
> >>>>>>> - Grant |
13 |
> >>>>>> |
14 |
> >>>>>> Like pointed out in the upstream thread, it's either wrongly built |
15 |
> >>>>>> net-misc/dhcpcd (should be with USE="udev") |
16 |
> >>>>>> and if not using dhcpcd, it might be a bug in net-misc/netifrc's |
17 |
> >>>>>> /etc/init.d/net.lo depend() { } section -- |
18 |
> >>>>>> it's possible it's missing dependency that forces /etc/init.d/udev |
19 |
> >>>>>> start first, specially if OpenRC is using parallel |
20 |
> >>>>>> startup |
21 |
> >>>>>> |
22 |
> >>>>>> So not really a udev bug, rather a misconfiguration in dhcpcd USE |
23 |
> >>>>>> flags OR bug in dependencies of netifrc's net.lo script |
24 |
> >>>>> |
25 |
> >>>>> I'm starting two interfaces, one that uses dhcpcd and one that does |
26 |
> >>>>> not. Both fail to start in the default runlevel until they are |
27 |
> >>>>> hotplugged later. I do have dhcpcd built with USE=udev. The string |
28 |
> >>>>> "udev" does not occur in /etc/init.d/net.lo so maybe that's the |
29 |
> >>>>> problem? Please confirm that I should file a Gentoo bug for this. |
30 |
> >>>>> |
31 |
> >>>>> - Grant |
32 |
> >>>> |
33 |
> >>>> Try adding 'after udev' to net.lo's depend() { } section and see if |
34 |
> >>>> that helps, if it does, file a bug |
35 |
> >>>> saying so. |
36 |
> >>> |
37 |
> >>> I added it like this and rebooted: |
38 |
> >>> |
39 |
> >>> depend() |
40 |
> >>> { |
41 |
> >>> |
42 |
> >>> after udev |
43 |
> >>> |
44 |
> >>> but the result was the same. I also have udev and udev-mount in the |
45 |
> >>> sysinit runlevel. |
46 |
> >>> |
47 |
> >>>> It was more of an educated guess than 100% accurate knowledge. I can't |
48 |
> >>>> think of an another |
49 |
> >>>> way to force netifrc to behave, since it's not coded in C, and it |
50 |
> >>>> can't link to libudev, so... |
51 |
> >>>> |
52 |
> >>>> However since you say *both*, even the one with dhcpcd fail to start, |
53 |
> >>>> before filing that bug, |
54 |
> >>>> see if disabling netifrc hotplugging works: |
55 |
> >>>> |
56 |
> >>>> # ln -s /dev/null /etc/udev/rules.d/90-network.rules |
57 |
> >>> |
58 |
> >>> Will that disable interface renaming or hotplugging? The system with |
59 |
> >>> the issue is remote and if the interfaces aren't renamed or if |
60 |
> >>> hotplugging doesn't happen then I won't be able to access the system |
61 |
> >>> for up to 24 hours. That's fine and I'm happy to test stuff like this |
62 |
> >>> anyway but I don't think this particular test will be informative |
63 |
> >> |
64 |
> >>> because: |
65 |
> >> It will disable the hotplugging, it means you *must* have the net.* |
66 |
> >> stuff added |
67 |
> >> to the default to runlevel yourself, like eg. |
68 |
> >> |
69 |
> >> # rc-update add net.foooooobar default |
70 |
> > |
71 |
> > They're in the default runlevel: |
72 |
> > |
73 |
> > # rc-update|grep net.enp |
74 |
> > |
75 |
> > net.enp0s20u2u1 | default |
76 |
> > net.enp0s20u2u2 | default |
77 |
> > |
78 |
> > I can disable hotplugging with rc_hotplug in rc.conf. Hotplugging is |
79 |
> > actually disabled by default there and my network interfaces won't |
80 |
> > start automatically that way. |
81 |
> |
82 |
> I'm not 100% sure the rc_hotplug will also disable the 90-network.rules |
83 |
> triggered |
84 |
> interface hotplugging |
85 |
> Don't count on that |
86 |
|
87 |
Samuli's right. I was experimenting on a new install how to stop net.eth0 |
88 |
from coming up (it was stalling forever because there was no ethernet cable |
89 |
present). No matter what I tried with /etc/rc.conf, or eselect rc, I couldn't |
90 |
stop the darn thing starting up. |
91 |
|
92 |
-- |
93 |
Regards, |
94 |
Mick |