mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
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 84ea567eb4.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
2789437be5
commit
a54510c775
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user