From: Quentin Schulz <quentin.schulz@cherry.de>
To: twoerner@gmail.com, docs@lists.yoctoproject.org
Subject: Re: [docs] [PATCH] docs: update VOLATILE_{LOG|TMP}_DIR
Date: Mon, 9 Sep 2024 11:56:44 +0200 [thread overview]
Message-ID: <cfae274f-86c0-4ffa-9c8c-ffd3601ec26d@cherry.de> (raw)
In-Reply-To: <20240904172748.18526-1-twoerner@gmail.com>
Hi Trevor,
On 9/4/24 7:27 PM, Trevor Woerner via lists.yoctoproject.org wrote:
> A new mechanism was introduced to handle whether or not tmp and log are
> tmpfs-based (i.e. in RAM) or persist as real directories in the root
> filesystem. The variables VOLATILE_LOG_DIR and VOLATILE_TMP_DIR no longer
> exist, and PERMS files are used instead.
>
> oe-core: 8d1ae67b89c4 ("bitbake.conf: drop VOLATILE_TMP_DIR, use FILESYSTEM_PERMS_TABLES instead")
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
> .../migration-guides/release-notes-5.0.rst | 2 ++
> documentation/ref-manual/features.rst | 4 +--
> documentation/ref-manual/variables.rst | 32 ++++---------------
> 3 files changed, 10 insertions(+), 28 deletions(-)
>
> diff --git a/documentation/migration-guides/release-notes-5.0.rst b/documentation/migration-guides/release-notes-5.0.rst
> index 800ba20a27b5..191debd0174a 100644
> --- a/documentation/migration-guides/release-notes-5.0.rst
> +++ b/documentation/migration-guides/release-notes-5.0.rst
> @@ -335,6 +335,8 @@ New Features / Enhancements in 5.0
> - Add minimal VS Code configuration to avoid VS Code's indexer from choking
> on build directories.
>
> + - VOLATILE_LOG_DIR and VOLATILE_TMP_DIR were removed in favour of the
> + FILESYSTEM_PERMS_TABLES mechanism.
>
Maybe we could add some :term: here so people don't have to look for the
new variable to use in the docs and just have to click on the link?
> Known Issues in 5.0
> ~~~~~~~~~~~~~~~~~~~
> diff --git a/documentation/ref-manual/features.rst b/documentation/ref-manual/features.rst
> index 2ea946b31d36..97c05cc2839f 100644
> --- a/documentation/ref-manual/features.rst
> +++ b/documentation/ref-manual/features.rst
> @@ -323,8 +323,8 @@ The image features available for all images are:
>
> .. note::
>
> - To make the ``/var/log`` directory on the target persistent, use the
> - :term:`VOLATILE_LOG_DIR` variable by setting it to "no".
> + To make the ``/var/log`` directory on the target persistent, remove
> + ``files/fs-perms-volatile-log.txt`` from :term:`FILESYSTEM_PERMS_TABLES`.
>
> - *ptest-pkgs:* Installs ptest packages for all ptest-enabled recipes.
>
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index 32c9e7407dbc..994ee23e2709 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -13,7 +13,6 @@ system and gives an overview of their function and contents.
> :term:`K <KARCH>` :term:`L <LABELS>` :term:`M <MACHINE>`
> :term:`N <NATIVELSBSTRING>` :term:`O <OBJCOPY>` :term:`P`
> :term:`R <RANLIB>` :term:`S` :term:`T`
> -:term:`U <UBOOT_CONFIG>` :term:`V <VOLATILE_LOG_DIR>`
I don't think this is appropriate here.
Instead:
:term:`U <UBOOT_CONFIG>` :term:`V <VIRTUAL-RUNTIME>`
> :term:`W <WARN_QA>` :term:`X <XSERVER>`
>
> .. glossary::
> @@ -2994,11 +2993,12 @@ system and gives an overview of their function and contents.
> and users across an entire work project. It is best to do this in the
> packages themselves but this is not always possible.
>
> - By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
> - which is located in the ``meta/files`` folder in the :term:`Source Directory`.
> - If you create your own file
> - permissions setting table, you should place it in your layer or the
> - distro's layer.
> + By default, the OpenEmbedded build system uses
> + ``fs-perms.txt``, ``fs-perms-volatile-log.txt``, and
> + ``files/fs-perms-volatile-tmp.txt`` which are located in the
> + ``meta/files`` folder in the :term:`Source Directory`. If you create
> + your own file permissions setting table, you should place it in your
> + layer or the distro's layer.
Where in my layer? Is there any variable I need to set in order for this
new file to be found by BitBake? etc.
Do we want to explain what the default means for the persistence of
which directories? The same way it was done for
VOLATILE_LOG_DIR/VOLATILE_TMP_DIR?
Cheers,
Quentin
prev parent reply other threads:[~2024-09-09 9:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-04 17:27 [PATCH] docs: update VOLATILE_{LOG|TMP}_DIR Trevor Woerner
2024-09-04 19:14 ` [docs] " Jörg Sommer
2024-09-09 9:56 ` Quentin Schulz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cfae274f-86c0-4ffa-9c8c-ffd3601ec26d@cherry.de \
--to=quentin.schulz@cherry.de \
--cc=docs@lists.yoctoproject.org \
--cc=twoerner@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox