summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Falcon <james.falcon@canonical.com>2022-02-14 13:25:10 -0600
committerGitHub <noreply@github.com>2022-02-14 13:25:10 -0600
commit1d3ddaf93378d1de6be34c7e6430e9b64d42b3f7 (patch)
tree69e879b7e6a7bef2a2fac921548ef6118bbe8861
parent50195ec8d1052d2b7a80f47a3709ebc4e74d6764 (diff)
downloadvyos-cloud-init-1d3ddaf93378d1de6be34c7e6430e9b64d42b3f7.tar.gz
vyos-cloud-init-1d3ddaf93378d1de6be34c7e6430e9b64d42b3f7.zip
docs: Add more details to runcmd docs (#1266)
-rw-r--r--cloudinit/config/cc_runcmd.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/cloudinit/config/cc_runcmd.py b/cloudinit/config/cc_runcmd.py
index ef37a823..c5206003 100644
--- a/cloudinit/config/cc_runcmd.py
+++ b/cloudinit/config/cc_runcmd.py
@@ -36,10 +36,13 @@ meta: MetaSchema = {
"""\
Run arbitrary commands at a rc.local like level with output to the
console. Each item can be either a list or a string. If the item is a
- list, it will be properly executed as if passed to ``execve()`` (with
- the first arg as the command). If the item is a string, it will be
- written to a file and interpreted
- using ``sh``.
+ list, it will be properly quoted. Each item is written to
+ ``/var/lib/cloud/instance/runcmd`` to be later interpreted using
+ ``sh``.
+
+ Note that the ``runcmd`` module only writes the script to be run
+ later. The module that actually runs the script is ``scripts-user``
+ in the :ref:`Final` boot stage.
.. note::