diff options
author | Chad Smith <chad.smith@canonical.com> | 2018-07-09 14:16:03 -0600 |
---|---|---|
committer | git-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com> | 2018-07-09 21:05:08 +0000 |
commit | c14693fa75c77e6b4f824a687fb52e0eee7c6d67 (patch) | |
tree | 46adf92b5e89173d9a366b106faa672fb4699ccc /cloudinit/config | |
parent | 7140b42117422de6d4567b0284fbbcc12cecd759 (diff) | |
download | cloud-init-git-c14693fa75c77e6b4f824a687fb52e0eee7c6d67.tar.gz |
18.3-9-g2e62cb8a-0ubuntu1 (patches unapplied)
Imported using git-ubuntu import.
Diffstat (limited to 'cloudinit/config')
-rw-r--r-- | cloudinit/config/cc_bootcmd.py | 8 | ||||
-rw-r--r-- | cloudinit/config/cc_runcmd.py | 5 | ||||
-rw-r--r-- | cloudinit/config/cc_write_files.py | 7 |
3 files changed, 18 insertions, 2 deletions
diff --git a/cloudinit/config/cc_bootcmd.py b/cloudinit/config/cc_bootcmd.py index db64f0a6..6813f534 100644 --- a/cloudinit/config/cc_bootcmd.py +++ b/cloudinit/config/cc_bootcmd.py @@ -42,7 +42,13 @@ schema = { .. note:: bootcmd should only be used for things that could not be done later - in the boot process."""), + in the boot process. + + .. note:: + + when writing files, do not use /tmp dir as it races with + systemd-tmpfiles-clean LP: #1707222. Use /run/somedir instead. + """), 'distros': distros, 'examples': [dedent("""\ bootcmd: diff --git a/cloudinit/config/cc_runcmd.py b/cloudinit/config/cc_runcmd.py index b6f6c807..1f75d6c5 100644 --- a/cloudinit/config/cc_runcmd.py +++ b/cloudinit/config/cc_runcmd.py @@ -42,6 +42,11 @@ schema = { all commands must be proper yaml, so you have to quote any characters yaml would eat (':' can be problematic) + + .. note:: + + when writing files, do not use /tmp dir as it races with + systemd-tmpfiles-clean LP: #1707222. Use /run/somedir instead. """), 'distros': distros, 'examples': [dedent("""\ diff --git a/cloudinit/config/cc_write_files.py b/cloudinit/config/cc_write_files.py index 54ae3a68..31d1db61 100644 --- a/cloudinit/config/cc_write_files.py +++ b/cloudinit/config/cc_write_files.py @@ -15,9 +15,14 @@ binary gzip data can be specified and will be decoded before being written. .. note:: if multiline data is provided, care should be taken to ensure that it - follows yaml formatting standargs. to specify binary data, use the yaml + follows yaml formatting standards. to specify binary data, use the yaml option ``!!binary`` +.. note:: + Do not write files under /tmp during boot because of a race with + systemd-tmpfiles-clean that can cause temp files to get cleaned during + the early boot process. Use /run/somedir instead to avoid race LP:1707222. + **Internal name:** ``cc_write_files`` **Module frequency:** per instance |