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.
This commit is contained in:
Lubomir Rintel 2022-08-31 16:12:00 +02:00
parent 7dccb5f548
commit f315dab1f5

View file

@ -651,7 +651,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);