-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runcmd directive incorrectly interprets list items #49
Comments
Seems a duplicate of #29? |
Note: while we attempted to implement the standard, we make no guarantee that the implementation is 100% standards compliant. So we may not close this item. In this case, there's some parser specific issue going on that makes it more complex. |
Not really. There are 3 problems with the runcmd. I will describe them on one configuration example:
Problem one (described in #29): It should run: Problem two (described in this issue): Problem three (described in #48): |
Yeah, this has been a long-standing problem. |
FWIW I've spent several days looking into whether our use of the YAML parser library and glib node tree is deficient and I have not yet identified an actual solution that would work. The issue is highly complex because of the way that YAML presents lists and some of the finesses of how you can write lists in YAML do not properly translate to what you think they do. Any potential changes I've identified would break existing modules. I have yet to identify a solution in code that would actually improve things here. |
According to the original documentation of the
cloud-config
:https://cloudinit.readthedocs.io/en/latest/topics/examples.html#run-commands-on-first-boot
In micro-config-drive, the lists are simply joined into one command and executed by shell:
There should be 4 commands executed.
3 in shell, 1 using
execve(3)
call. The last one instead ofexecve
is executed in shell.The text was updated successfully, but these errors were encountered: