]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(network-manager): add "After" dependency on dbus.service
authorBeniamino Galvani <bgalvani@redhat.com>
Tue, 31 Jan 2023 15:32:19 +0000 (16:32 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 13 Feb 2023 10:54:41 +0000 (10:54 +0000)
During shutdown, there is no ordering dependency between the nm-initrd service
and the D-Bus daemon, and so the latter can be stopped before. This causes
issues to NetworkManager, especially when team interfaces are present because
NM will see teamd dropping from the bus and will try to reactivate the
connection.

Add a "After" dependency to make sure the D-Bus daemon is stopped after NM on
shutdown.

modules.d/35network-manager/nm-initrd.service

index 3e24f52a0aec5deeb3604e68ca80c99163afcb9f..dbd8caa74399c8496bd269f62d833935c5000c4c 100644 (file)
@@ -3,6 +3,7 @@ DefaultDependencies=no
 Wants=systemd-udev-trigger.service
 After=systemd-udev-trigger.service
 After=dracut-cmdline.service
+After=dbus.service
 Wants=network.target
 Before=network.target
 ConditionPathExists=/run/NetworkManager/initrd/neednet