Skip to content

Commit

Permalink
Always rename an interface to its name specified in config if no Name…
Browse files Browse the repository at this point in the history
…Policy= is specified

This is for issue systemd#9006
  • Loading branch information
Mathieu Trudel-Lapierre committed May 25, 2018
1 parent 49805b3 commit cc9c923
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/udev/net/link-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,8 @@ int link_config_apply(link_config_ctx *ctx, link_config *config,
}
}

if (should_rename(device, respect_predictable)) {
/* if not set by policy, fall back manually set name */
if (!new_name)
new_name = config->name;
} else
new_name = NULL;
if (!new_name)
new_name = config->name;

switch (config->mac_policy) {
case MACPOLICY_PERSISTENT:
Expand Down

0 comments on commit cc9c923

Please sign in to comment.