mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
udev/net: generate new network interface name only on add uevent
On other uevents, the name will be anyway ignored in rename_netif() in udev-event.c.
This commit is contained in:
parent
e65c6c1baa
commit
cd941e6596
@ -724,7 +724,7 @@ static int link_generate_new_name(Link *link) {
|
|||||||
config = link->config;
|
config = link->config;
|
||||||
device = link->device;
|
device = link->device;
|
||||||
|
|
||||||
if (link->action == SD_DEVICE_MOVE) {
|
if (link->action != SD_DEVICE_ADD) {
|
||||||
log_link_debug(link, "Skipping to apply Name= and NamePolicy= on '%s' uevent.",
|
log_link_debug(link, "Skipping to apply Name= and NamePolicy= on '%s' uevent.",
|
||||||
device_action_to_string(link->action));
|
device_action_to_string(link->action));
|
||||||
goto no_rename;
|
goto no_rename;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user