Skip to content

Commit

Permalink
cloud-init.service: on centos/fedora/redhat wait on NetworkManager.se…
Browse files Browse the repository at this point in the history
…rvice

In Centos/RHEL 8, NetworkManager is installed as the networking service.
cloud-init.service needs to run After this service to allow the OS to
bring networking up first.

LP: #1843334
  • Loading branch information
raharper authored and Server Team CI Bot committed Oct 31, 2019
1 parent e1b4b8c commit 8888ca1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions systemd/cloud-init.service.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ After=networking.service
{% endif %}
{% if variant in ["centos", "fedora", "redhat"] %}
After=network.service
After=NetworkManager.service
{% endif %}
{% if variant in ["suse"] %}
After=wicked.service
Expand Down

0 comments on commit 8888ca1

Please sign in to comment.