docs/treefile: Add info about paths for add-files

Add a note that only certain paths actually make sense in the
`add-files` directive and link to the OSTree docs. Let's also the
examples given to more realistic and correct ones.

Closes: #1643
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2018-10-26 12:44:14 -04:00 committed by Atomic Bot
parent 202192d61e
commit f8f47480f1

View File

@ -200,7 +200,12 @@ It supports the following parameters:
file name, and the second element is the destination name. The
source file must be in the same directory as the treefile.
Example: `"add-files": [["bar", "/bar"], ["foo", "/foo"]]`
Example: `"add-files": [["bar", "/usr/share/bar"], ["foo", "/lib/foo"]]`
Note that in the OSTree model, not all directories are managed by OSTree. In
short, only files in `/usr` (or UsrMove symlinks into `/usr`) and `/etc` are
supported. For more details, see the OSTree manual:
https://ostree.readthedocs.io/en/latest/manual/deployment/
* `tmp-is-dir`: boolean, optional: Defaults to `false`. By default,
rpm-ostree creates symlink `/tmp``sysroot/tmp`. When set to `true`,