]> git.ipfire.org Git - thirdparty/systemd.git/commit
link-config: add "keep" policy and use it by default
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 16 Jan 2019 13:26:29 +0000 (14:26 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 17 Jan 2019 12:56:02 +0000 (13:56 +0100)
commit3907446f02d5966e795a7361860f7189c8b3ccc5
tree4efa721555f3bb44929f9ca7bad63a9f0e2a2724
parent0b189e8fa72a06ada15096c9b363bddc501c01fa
link-config: add "keep" policy and use it by default

If "keep" policy is specified, and the interface has a name that is
NET_NAME_USER or NET_NAME_RENAMED, we stop processing rules. "keep" should
probably be specified either first or last depending on the preference.

This partially reimplements 55b6530baacf4658a183b15b010a8cf3483fde08, in the
sense that if the "keep" policy is not specified, and if the interface has
a NamingPolicy, it will be renamed, even if it had a name previously.
So this breaks backwards compatibility in this case, but that's more in line
with what users expect.

Closes #9006.
man/systemd.link.xml
network/99-default.link
src/udev/net/link-config.c
src/udev/net/link-config.h