summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-05-26 07:21:00 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-05-28 10:04:12 +0200
commita54510c7754b830e95916a36c1ca17f80bceb084 (patch)
treeef3e703a7bfb67e35b2f27f520c3be4eae1180ed
parent2789437be503149340d3efbb18f83540dc405f56 (diff)
downloadsystemd-a54510c7754b830e95916a36c1ca17f80bceb084.tar.gz
udev: suppress warning when interface matches 99-default.link
This suppress the following warning: ``` systemd-udevd[437]: Config file /usr/lib/systemd/network/99-default.link applies to device based on potentially unpredictable interface name 'wlan0' ``` Follow-up for 84ea567eb4326eb970a33188649fde6bea2a0d4e.
-rw-r--r--src/udev/net/link-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index 7754959cdf..a4e10ff988 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -260,7 +260,7 @@ int link_config_get(link_config_ctx *ctx, sd_device *device, link_config **ret)
(void) link_unsigned_attribute(device, "name_assign_type", &name_assign_type);
- if (name_assign_type == NET_NAME_ENUM) {
+ if (name_assign_type == NET_NAME_ENUM && !strv_contains(link->match_name, "*")) {
log_warning("Config file %s applies to device based on potentially unpredictable interface name '%s'",
link->filename, sysname);
*ret = link;