summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-01-16 14:26:29 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-01-17 13:56:02 +0100
commit3907446f02d5966e795a7361860f7189c8b3ccc5 (patch)
tree4efa721555f3bb44929f9ca7bad63a9f0e2a2724 /network
parent0b189e8fa72a06ada15096c9b363bddc501c01fa (diff)
downloadsystemd-3907446f02d5966e795a7361860f7189c8b3ccc5.tar.gz
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.
Diffstat (limited to 'network')
-rw-r--r--network/99-default.link2
1 files changed, 1 insertions, 1 deletions
diff --git a/network/99-default.link b/network/99-default.link
index 561bf329e4..92fcbe83ea 100644
--- a/network/99-default.link
+++ b/network/99-default.link
@@ -8,5 +8,5 @@
# (at your option) any later version.
[Link]
-NamePolicy=kernel database onboard slot path
+NamePolicy=keep kernel database onboard slot path
MACAddressPolicy=persistent