mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
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.
This commit is contained in:
parent
d7cfb39436
commit
def1901f7e
@ -1,9 +1,16 @@
|
|||||||
#cloud-config
|
#cloud-config
|
||||||
coreos:
|
coreos:
|
||||||
units:
|
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
|
- name: coreos-cloudinit-vagrant-user.path
|
||||||
command: start
|
command: start
|
||||||
runtime: no
|
runtime: yes
|
||||||
content: |
|
content: |
|
||||||
[Path]
|
[Path]
|
||||||
PathExists=/var/lib/coreos-vagrant/vagrantfile-user-data
|
PathExists=/var/lib/coreos-vagrant/vagrantfile-user-data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user