chiark / gitweb /
udev: net_setup - allow matching on OriginalName=
authorTom Gundersen <teg@jklm.no>
Thu, 4 Dec 2014 17:12:55 +0000 (18:12 +0100)
committerTom Gundersen <teg@jklm.no>
Thu, 4 Dec 2014 17:53:47 +0000 (18:53 +0100)
commit7eb08da4b388b920c8a894b1500c9cc7dc1f31ef
tree04e8739827b83b3a4e1bbc50697b58f157afe90d
parent03e8fdb34610c498e8c7fbe0ae18b53fe28cfbd1
udev: net_setup - allow matching on OriginalName=

This has been requested repeatedly, so let's give it a go. We explicitly do not allow matching
on names that have already been changed (from a previous udev run, or otherwise), and matching
on unpredictable names (ethX) is discouraged (but not currently disallowed).

We also currently allow:

[Match]
Name=veth0

[Link]
Name=my-name0
SomeOtherSetting=true

Which means that the link file will be applied the first time it is invoked, but
not on subsequent invocations, which may be surprising.
man/systemd.link.xml
src/libsystemd-network/network-internal.c
src/libsystemd-network/network-internal.h
src/network/networkd-netdev.c
src/network/networkd-network.c
src/udev/net/link-config-gperf.gperf
src/udev/net/link-config.c
src/udev/net/link-config.h