[systemd-devel] networkd-218 seems to ignore .link files

Lennart Poettering lennart at poettering.net
Tue Apr 21 04:12:21 PDT 2015


On Tue, 21.04.15 11:42, Andrew Cooks (acooks at linux.com) wrote:

> > > # cat /etc/systemd/network/01-mgmt.link
> > > [Match]
> > > Path=pci-0000:01:00.0
> > > Type=ether
> > >
> > > [Link]
> > > Name=mgmt
> > > MACAddressPolicy=persistent
> >
> > Consider testing the .link file with "udevadm test-builtin
> > net_setup_link..."
> 
> Thanks, this is exactly what I needed to find the problem.
> 
> There were two issues with my .link file:
> I needed to call my local override 100-mgmt.link instead of 01-mgmt.link.
> IMHO, the ordering of the .link files is somewhat unfortunate, even though
> the documentation did try to explain it.
> 
> Secondly, the Path in the [Match] section was wrong. The examples use
> pci-0000:xx:yy.0-* and 'udevadm info /sys/class/net/enp1s0' shows
> 'ID_PATH=pci-0000:01:00.0' (exactly what I used, as the man page
> instructs), but it only started working when I tried
> 'Path=*0000:01:00.0*'.

Hmm, that's really weird. This should work without the *, too.

Are really *both* the trailing and starting * necessary?

Could you please file a bug about this in fdo bz? This is something to
fix, and we shouldn't forget about it.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list