diff options
author | Chad Smith <chad.smith@canonical.com> | 2018-07-09 20:13:47 +0000 |
---|---|---|
committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2018-07-09 20:13:47 +0000 |
commit | 2e62cb8a6406309cbeb5f8d2aa00fb30e72e1cfc (patch) | |
tree | d4ed2a20225ae9688a91e131c173a7eca17c8853 /doc/examples/cloud-config.txt | |
parent | c1a75a697d7cb2e6c97ad90d64c9b2b88db2034a (diff) | |
download | vyos-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 'doc/examples/cloud-config.txt')
-rw-r--r-- | doc/examples/cloud-config.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/examples/cloud-config.txt b/doc/examples/cloud-config.txt index bd84c641..774f66b9 100644 --- a/doc/examples/cloud-config.txt +++ b/doc/examples/cloud-config.txt @@ -127,7 +127,10 @@ runcmd: - [ sh, -xc, "echo $(date) ': hello world!'" ] - [ sh, -c, echo "=========hello world'=========" ] - ls -l /root - - [ wget, "http://slashdot.org", -O, /tmp/index.html ] + # Note: Don't write files to /tmp from cloud-init use /run/somedir instead. + # Early boot environments can race systemd-tmpfiles-clean LP: #1707222. + - mkdir /run/mydir + - [ wget, "http://slashdot.org", -O, /run/mydir/index.html ] # boot commands |