team: pass -N twice to teamd

With new teamd versions, this will indicate that we want the team ports to
be kept in place when teamd terminates. Old versions will ignore it and
behave like they always did.

This keeps the team operational when teamd drops off for a while e.g. on
transition from initrd to real root during network boot.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1360
This commit is contained in:
Lubomir Rintel 2022-08-31 16:12:00 +02:00
parent f769be15ca
commit 1e6296b0ae

View file

@ -676,7 +676,7 @@ teamd_start(NMDeviceTeam *self)
g_ptr_array_add(argv, (gpointer) "-U");
if (priv->teamd_dbus_watch)
g_ptr_array_add(argv, (gpointer) "-D");
g_ptr_array_add(argv, (gpointer) "-N");
g_ptr_array_add(argv, (gpointer) "-NN");
g_ptr_array_add(argv, (gpointer) "-t");
g_ptr_array_add(argv, (gpointer) iface);