Re: Networking issue with l3s when using systemd


Richard Purdie
 

On Mon, 2021-06-14 at 13:59 -0400, Bruce Ashfield wrote:
On Mon, Jun 14, 2021 at 10:59 AM Matt Spencer <Matt.Spencer@...> wrote:

Hey Bruce,

I understand that changing things can be difficult once launched.

But looking at the systemd documentation here https://wiki.archlinux.org/title/systemd-networkd and in the note that says 'Devices can also be matched by their type. E.g. Type=ether for Ethernet, Type=wlan for Wi-Fi and Type=wwan for WWAN. Note that Type=ether will also match virtual Ethernet interfaces (veth*), which may be undesirable.'

I have created a patch that modifies poky's meta/recipes-core/systemd/systemd-conf/wired.network to add '+Name=!veth*' to the Match clause which the team at Arm are reviewing with a view to upstream.

I feel that this should have been the default behaviour anyway?
Perhaps, but it is probably a good idea to have the default as broad
as possible. If someone comes up with an alternate requirement, you'd
end up having a harder time keeping them both working in oe-core.

We could also carry a bbappend in meta-virtualization that triggers
when "virtualization" is in the distro features. That way we are
providing an override that makes sense within the context of the layer
that is providing it, and the distro features that are enabled.
FWIW I suspect the veth change should be ok for OE-Core if I understand 
things correctly.

Cheers,

Richard

Join {meta-virtualization@lists.yoctoproject.org to automatically receive all group messages.