[systemd-devel] Match section of .link file not working

Andrei Borzenkov arvidjaar at gmail.com
Sun Aug 24 11:29:24 PDT 2014


В Sun, 24 Aug 2014 09:19:13 +0200
Simon Peeters <peeters.simon at gmail.com> пишет:

> >> Ok, so there is only one problem now:
> >> ID_PATH is the same for all my vif interfaces, and i need to select
> >> only one of them.
> >>
> >
> > Please show "udevadm info -q all" for each interface.
> 
> P: /devices/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/net/wlan0
> P: /devices/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/net/wlv1
> P: /devices/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/net/wlv2
> 
> wlv2 is a client and needs a stable mac, otherwise the dhcp f*cs up.
> wlv1 is an acesspoint, and needs a mac different from wlv2. (This
> should probably also be stable, but i can live with random for this
> one.)

So you have single device that exports multiple interfaces. To
distinguish between them driver would need to provide some persistent
information about each interface. I understand that dev_id (or
dev_port) is supposed to be it, but as of now almost no driver actually
bothers to set them.

I wonder how is it possible to match such devices at all ...

> (yes, the wlv3 was just for testing, wlv1 and wlv2 are the real ones)

You mean wlan0?


More information about the systemd-devel mailing list