From 3907446f02d5966e795a7361860f7189c8b3ccc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 16 Jan 2019 14:26:29 +0100 Subject: 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. --- network/99-default.link | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'network') 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 -- cgit v1.2.1