clearlinux / micro-config-drive

An alternative and small cloud-init implementation in C
Other
46 stars 17 forks source link

runcmd directive concatenates commands instead of executing them separately #48

Open jakub-d opened 4 years ago

jakub-d commented 4 years ago

Cloud config file:

#cloud-config
---

preserve_hostname: true

runcmd:
  - ls
  - ps
  - whoami

System logs indicate that those commands are joined into one string:

ucd[626]: [4.282477] lib: Executing: /bin/sh -c "ls ps whoami "

Those commands should be executed separately.

ahkok commented 4 years ago

This is due to the yaml parser. I do not know if this is actually fixable.