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.

(Cherry-picked commit: 1b7d83110741560f26027fbd9435763eef56935a)

Resolves: RHEL-13192
  • Loading branch information
bengal authored and pvalena committed Jul 27, 2024
1 parent f8cb575 commit 79fbe41
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 79fbe41

Please sign in to comment.