From a54510c7754b830e95916a36c1ca17f80bceb084 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 26 May 2019 07:21:00 +0900 Subject: [PATCH] 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. --- src/udev/net/link-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index 7754959cdf3..a4e10ff988b 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; -- 2.47.3