Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

runcmd doesn't seem to work properly #24

@markdryan

Description

@markdryan

I guess I must be doing something wrong, but I'm experiencing a weird problem on clearlinux 19110. I have a cloud init file with a runcmd section that looks like this.

runcmd:
 - systemctl start sshd
 - systemctl enable sshd

ucd is not running these commands correctly. It does

/bin/sh -c "systemctl start sshd systemctl enable sshd"

which fails. I'd expect it to do

/bin/sh -c "systemctl start sshd"
/bin/sh -c "systemctl enable sshd"

I don't really understand how the g_node stuff works but looking at the code

https://github.com/clearlinux/micro-config-drive/blob/master/src/ccmodules/runcmd.c#L52

It does seem like ucd concatenates all the commands in the runcmd section into one large string which it executes in one go, which is unlikely to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions