-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always rename an interface to its name specified in config #9088
Conversation
Imho explicit user configuration of custom interface names should be honoured. +1 from me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't comment on wether this is appropriate or not. But after this change should_rename
is unused, and thus it should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should go in, but your patch also changes behaviour in one, I assume, unintended case.
src/udev/net/link-config.c
Outdated
case NET_NAME_PREDICTABLE: | ||
/* the kernel claims to have given a predictable name */ | ||
if (respect_predictable) | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part should stay. I.e. if type == NET_NAME_PREDICATABLE
and NAMEPOLICY_KERNEL
was specified, the kernel name should be kept.
…Policy= is specified This is for issue systemd#9006
For when no NamePolicy= is specified...
This is intended to fix #9006.