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

Simon Peeters peeters.simon at gmail.com
Sat Aug 23 21:49:39 PDT 2014

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.

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