stinger runs dhcpcd in stage 2. dhcpcd treats Nebula's interface as one of
its own, and when it stops it removes the address and route Nebula gave
it, so any switch that restarts dhcpcd takes stinger off Nebula until
Nebula is restarted. Separately, nothing names stinger's NIC eth0 any
more since its networking moved to the host module, so after a reboot it
comes up as enp1s0 and matches none of its configuration.
Moved stinger to networkd, which leaves interfaces without a matching
.network file, such as Nebula's, alone. The host module already
writes its addresses and VLAN as networkd units, and Tang runs the same
networkd configuration in initrd. networkd handles router advertisements
itself and stops accepting them when forwarding is on, which OTBR turns
on, so eth0 and iot accept them explicitly and the accept_ra sysctl for
eth0 is gone. On iot, OTBR's backbone, networkd installs the routes
other border routers advertise, which OTBR's accept_ra sysctls did
under the kernel. resolved stays off so DNS still goes through dnsmasq.
A .link file matching the NIC's MAC address names it eth0 again. udev
applies it in initrd as well as stage 2, so the name holds from boot.
Test plan:
- Built stinger's toplevel: 10-eth0.link matches its MAC and names it
eth0, and 40-eth0 and 40-iot carry the static addresses with
IPv6AcceptRA=true
- CI