Skip to content

Commit

Permalink
fix(network-manager): add "After" dependency on dbus.service
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bengal authored and johannbg committed Feb 13, 2023
1 parent 1597076 commit d8a9a73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules.d/35network-manager/nm-initrd.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8a9a73

Please sign in to comment.