From def1901f7e8a6f20e43b2a6848924a8824301149 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Tue, 29 Apr 2014 02:10:10 -0400 Subject: [PATCH] fix(coreos-base/oem-vagrant): Create directory for vagrant user-data. This fixes compatibility with the existing Vagrantfile in coreos-vagrant which expected the plugin code to create this directory. Also, the units can be runtime since they are always written at boot. --- .../coreos-base/oem-vagrant/files/cloud-config.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 a40a1b65f0..f6512e7b48 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 @@ -1,9 +1,16 @@ #cloud-config coreos: units: + - name: coreos-cloudinit-vagrant-mkdir.service + command: start + runtime: yes + content: | + [Service] + Type=oneshot + ExecStart=/bin/mkdir -p /var/lib/coreos-vagrant - name: coreos-cloudinit-vagrant-user.path command: start - runtime: no + runtime: yes content: | [Path] PathExists=/var/lib/coreos-vagrant/vagrantfile-user-data