summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_write_files.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2018-07-09 20:13:47 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-07-09 20:13:47 +0000
commit2e62cb8a6406309cbeb5f8d2aa00fb30e72e1cfc (patch)
treed4ed2a20225ae9688a91e131c173a7eca17c8853 /cloudinit/config/cc_write_files.py
parentc1a75a697d7cb2e6c97ad90d64c9b2b88db2034a (diff)
downloadvyos-cloud-init-2e62cb8a6406309cbeb5f8d2aa00fb30e72e1cfc.tar.gz
vyos-cloud-init-2e62cb8a6406309cbeb5f8d2aa00fb30e72e1cfc.zip
docs: note in rtd about avoiding /tmp when writing files
LP: #1727876
Diffstat (limited to 'cloudinit/config/cc_write_files.py')
-rw-r--r--cloudinit/config/cc_write_files.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cloudinit/config/cc_write_files.py b/cloudinit/config/cc_write_files.py
index 1b7e7e30..31d1db61 100644
--- a/cloudinit/config/cc_write_files.py
+++ b/cloudinit/config/cc_write_files.py
@@ -18,6 +18,11 @@ binary gzip data can be specified and will be decoded before being written.
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