Skip to content

Commit

Permalink
systemd: fix issue with networkd online target
Browse files Browse the repository at this point in the history
  • Loading branch information
ebenner committed Nov 29, 2023
1 parent a665bf5 commit 2178c1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion systemd/cloud-init.service.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ Wants=cloud-init-local.service
Wants=sshd-keygen.service
Wants=sshd.service
After=cloud-init-local.service
{% if variant in ["ubuntu", "debian"] %}
Before=systemd-networkd-wait-online.service
{% else %}
After=systemd-networkd-wait-online.service
{% endif %}
{% if variant in ["ubuntu", "unknown", "debian"] %}
After=networking.service
{% endif %}
Expand All @@ -27,7 +31,6 @@ After=wicked.service
After=dbus.service
{% endif %}
Before=network-online.target
Before=systemd-networkd-wait-online.service
Before=sshd-keygen.service
Before=sshd.service
{% if variant in ["ubuntu", "unknown", "debian"] %}
Expand Down

0 comments on commit 2178c1e

Please sign in to comment.