-
Notifications
You must be signed in to change notification settings - Fork 201
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
[RFC] Set keep-configuration=no by default for Network Manager #519
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -304,9 +304,20 @@ int main(int argc, char** argv) | |
|
||
/* Disable /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf | ||
* (which restricts NM to wifi and wwan) if "renderer: NetworkManager" is used anywhere */ | ||
if (netplan_state_get_backend(np_state) == NETPLAN_BACKEND_NM || any_nm) | ||
if (netplan_state_get_backend(np_state) == NETPLAN_BACKEND_NM || any_nm) { | ||
_netplan_g_string_free_to_file(g_string_new(NULL), rootdir, "/run/NetworkManager/conf.d/10-globally-managed-devices.conf", NULL); | ||
|
||
/* | ||
* Always try to match existing interfaces with connections. | ||
* Because "netplan apply" is too aggressive with Network Manager connections it might | ||
* create in-memory profiles for existing virtual interfaces. | ||
* keep-configuration forces NM to use existing connection profiles for these interfaces avoiding | ||
* this problem. | ||
*/ | ||
_netplan_g_string_free_to_file(g_string_new("[device]\nkeep-configuration=no\n"), rootdir, | ||
"/run/NetworkManager/conf.d/10-keep-configuration.conf", NULL); | ||
Comment on lines
+317
to
+318
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nitpick: should this be included in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or maybe rather ship is as a configuration file from the Netplan package, instead of generating it? |
||
} | ||
|
||
gboolean enable_wait_online = FALSE; | ||
if (any_networkd) | ||
enable_wait_online = _netplan_networkd_write_wait_online(np_state, rootdir); | ||
|
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.
note: We need to confirm that this doesn't regress https://bugs.launchpad.net/netplan/+bug/1870561