]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(network-manager): support teaming under NM+systemd
authorDusty Mabe <dusty@dustymabe.com>
Thu, 24 Jun 2021 18:41:08 +0000 (14:41 -0400)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 28 Jun 2021 11:30:34 +0000 (11:30 +0000)
Previously when NM was run without dbus then teaming would come
up appropriately [1], but now that dbus exists we also need to
include some supporting infrastructure to allow for it to work
again.

[1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/d689380cfc5734a29b1302d68027190e1a606265

modules.d/35network-manager/module-setup.sh

index 0b7d21aea70919994bf563afab275f207e56fa75..f856146800f369df1f76c12cdcf131f2ae7e9b7d 100755 (executable)
@@ -38,6 +38,11 @@ install() {
         inst "$dbussystem"/org.freedesktop.NetworkManager.conf
         inst_multiple nmcli nm-online
 
+        # teaming support under systemd+dbus
+        inst_multiple -o \
+            "$dbussystem"/teamd.conf \
+            "$dbussystemconfdir"/teamd.conf
+
         # Install a configuration snippet to prevent the automatic creation of
         # "Wired connection #" DHCP connections for Ethernet interfaces
         inst_simple "$moddir"/initrd-no-auto-default.conf /usr/lib/NetworkManager/conf.d/