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

Andrei Borzenkov arvidjaar at gmail.com
Sat Aug 23 22:43:40 PDT 2014


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

> 2014-08-24 6:45 GMT+02:00 Simon Peeters <peeters.simon at gmail.com>:
> > 2014-08-24 6:23 GMT+02:00 Andrei Borzenkov <arvidjaar at gmail.com>:
> >> В Sun, 24 Aug 2014 03:04:03 +0200
> >> Simon Peeters <peeters.simon at gmail.com> пишет:
> >>
> >>> Hej all,
> >>>
> >>> I have a system on wich i wish to randomise the mac address of one
> >>> specific interface. This is important because it is a wireless vif,
> >>> and having multiple vif's with the same mac doesn't work.
> >>>
> >>> I currently have the following config in 50-wl-mac.link:
> >>> [Match]
> >>> Path=/devices/ocp.3/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1:1.0/net/wlv3
> >>
> >> This should be the value of ID_PATH property, not sysfs path. Check with
> >>
> >> udevadm info --query
> >> property /sys/devices/ocp.3/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1:1.0/net/wlv3
> >
> > oops, I confused ID_PATH with DEVPATH, now i feel like an idiot.
> 
> 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.

> sigh, and manually setting the mac address gives anoying races :(
> 
> Any idea how I could match a single vif interface?



More information about the systemd-devel mailing list