Skip to content

Commit

Permalink
chore: simplify and standardize cloud-final.service (canonical#5830)
Browse files Browse the repository at this point in the history
- There is no harm in ordering after a service which doesn't exist.
- Cloud-init's final stage should consistently be ordered with respect to
  multi-user.target on all distros.
  • Loading branch information
holmanb committed Oct 22, 2024
1 parent a300fee commit 39260b0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions systemd/cloud-final.service.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
# https://docs.cloud-init.io/en/latest/explanation/boot.html
Description=Cloud-init: Final Stage
After=network-online.target time-sync.target cloud-config.service rc-local.service
{% if variant in ["ubuntu", "unknown", "debian"] %}
After=multi-user.target
Before=apt-daily.service
{% endif %}
Wants=network-online.target cloud-config.service
ConditionPathExists=!/etc/cloud/cloud-init.disabled
ConditionKernelCommandLine=!cloud-init=disabled
Expand Down

0 comments on commit 39260b0

Please sign in to comment.