← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~rjschwei/cloud-init:noAptButDeb into cloud-init:master

 

Robert Schweikert has proposed merging ~rjschwei/cloud-init:noAptButDeb into cloud-init:master.

Requested reviews:
  cloud-init commiters (cloud-init-dev)

For more details, see:
https://code.launchpad.net/~rjschwei/cloud-init/+git/cloud-init/+merge/331251

Ordering on apt service should only be set up on Debian based distributions
-- 
Your team cloud-init commiters is requested to review the proposed merge of ~rjschwei/cloud-init:noAptButDeb into cloud-init:master.
diff --git a/systemd/cloud-final.service.tmpl b/systemd/cloud-final.service.tmpl
index fc01b89..e2b9125 100644
--- a/systemd/cloud-final.service.tmpl
+++ b/systemd/cloud-final.service.tmpl
@@ -4,9 +4,10 @@ Description=Execute cloud user/final scripts
 After=network-online.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
-Before=apt-daily.service
+
 
 [Service]
 Type=oneshot

Follow ups