summaryrefslogtreecommitdiff
path: root/systemd/cloud-init.service
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-04-09 11:54:01 -0400
committerScott Moser <smoser@ubuntu.com>2015-04-09 11:54:01 -0400
commitf4789639af50ea631cf75af526ad013b05670caa (patch)
treea260c0bf1a988ee94418d5f7587c9c660aa3c9ea /systemd/cloud-init.service
parent8165000c3975db07cb5b8b29410635dd6c9345bd (diff)
downloadvyos-cloud-init-f4789639af50ea631cf75af526ad013b05670caa.tar.gz
vyos-cloud-init-f4789639af50ea631cf75af526ad013b05670caa.zip
systemd: use network-online instead of network.target (LP: #1440180)
don't declare a Wants/Requires on network.target; this is a passive target that should only be pulled in by implementors of the networking service. The requirement for network needs to be expressed as a dependency on network-online.target. LP: #1440180
Diffstat (limited to 'systemd/cloud-init.service')
-rw-r--r--systemd/cloud-init.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/systemd/cloud-init.service b/systemd/cloud-init.service
index 398b90ea..48920283 100644
--- a/systemd/cloud-init.service
+++ b/systemd/cloud-init.service
@@ -1,8 +1,8 @@
[Unit]
Description=Initial cloud-init job (metadata service crawler)
-After=local-fs.target network.target cloud-init-local.service
+After=local-fs.target network-online.target cloud-init-local.service
Before=sshd.service sshd-keygen.service systemd-user-sessions.service
-Requires=network.target
+Requires=network-online.target
Wants=local-fs.target cloud-init-local.service sshd.service sshd-keygen.service
[Service]