summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2015-01-15 09:14:34 -0800
committerSteve Langasek <steve.langasek@canonical.com>2015-01-15 09:14:34 -0800
commit72d4be8b5d8650f1f3c1c32f2a728a22c7f6ad1f (patch)
tree67aca73970f9170ecc345a1e54d51e770c4979f4 /systemd
parenta61ec07ed02d725a004ec17b4ae5257c89d67987 (diff)
downloadvyos-cloud-init-72d4be8b5d8650f1f3c1c32f2a728a22c7f6ad1f.tar.gz
vyos-cloud-init-72d4be8b5d8650f1f3c1c32f2a728a22c7f6ad1f.zip
Ensure that when running under systemd, cloud-init.service is run before we
display any getty on the console so that the cloud-init output doesn't get written on top of a login prompt.
Diffstat (limited to 'systemd')
-rw-r--r--systemd/cloud-init.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/cloud-init.service b/systemd/cloud-init.service
index 6b0c7229..64471cdf 100644
--- a/systemd/cloud-init.service
+++ b/systemd/cloud-init.service
@@ -1,7 +1,7 @@
[Unit]
Description=Initial cloud-init job (metadata service crawler)
After=local-fs.target network.target cloud-init-local.service
-Before=sshd.service sshd-keygen.service
+Before=sshd.service sshd-keygen.service getty.target
Requires=network.target
Wants=local-fs.target cloud-init-local.service sshd.service sshd-keygen.service