udev: link_setup - respect kernel name assign policy

Newer kernels export meta-information about the origin of an ifname. Respect this
from the ifname rename logic. We do not rename any interfaces that was originally
named by userspace, nor once which have already been renamed from userspace.

Moreover, we optionally do not (the default) rename interfaces which the kernel
claims to have named in a predictable way.
This commit is contained in:
Tom Gundersen
2014-08-08 13:30:15 +02:00
parent f3fc48150b
commit 04b67d4925
5 changed files with 78 additions and 13 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
[Link]
NamePolicy=database onboard slot path
NamePolicy=kernel database onboard slot path
MACAddressPolicy=persistent