From 587ad57d45fd868bd2f508e4735d39497fe8d5b1 Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Tue, 25 Mar 2014 14:45:43 -0700 Subject: [PATCH] fix(oem-vagrant): Use sentinel to limit coreos-cloudinit to one run --- .../coreos-base/oem-vagrant/files/cloud-config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/cloud-config.yml b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/cloud-config.yml index 17890ae0f6..7d28afa66f 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/cloud-config.yml +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/cloud-config.yml @@ -13,7 +13,11 @@ coreos: - name: coreos-cloudinit-vagrant.service runtime: no content: | + [Unit] + ConditionFileNotEmpty=/var/lib/coreos-vagrant/user-data + [Service] Type=oneshot EnvironmentFile=/etc/environment ExecStart=/usr/bin/coreos-cloudinit --from-file /var/lib/coreos-vagrant/user-data + RemainAfterExit=yes