summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2024-08-27 18:40:41 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-08-28 09:14:26 +0100
commit2f46b6f27dfa3a9d5ad177900fcecfe64c3536f1 (patch)
tree8445d619e70eeabe1f40544271f22da5105512d6 /meta/recipes-core/systemd
parent2f8806deb7655b37d6f8d12ff54680d6acf7a298 (diff)
downloadpoky-2f46b6f27dfa3a9d5ad177900fcecfe64c3536f1.tar.gz
bitbake.conf: drop VOLATILE_TMP_DIR, use FILESYSTEM_PERMS_TABLES instead
* Drop VOLATILE_TMP_DIR, use FILESYSTEM_PERMS_TABLES instead. By default, FILESYSTEM_PERMS_TABLES ?= "files/fs-perms.txt \ files/fs-perms-volatile-log.txt \ files/fs-perms-volatile-tmp.txt" it contains 'files/fs-perms-volatile-tmp.txt', which means volatile tmp is enabled. User can disable volatile tmp by remove 'files/fs-perms-volatile-tmp.txt' from FILESYSTEM_PERMS_TABLES. * If volatile tmp is disabled, both /tmp and /var/tmp are persistent (From OE-Core rev: 8d1ae67b89c45f78162e070228086c7ef88c3264) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd')
-rw-r--r--meta/recipes-core/systemd/systemd_256.5.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/systemd/systemd_256.5.bb b/meta/recipes-core/systemd/systemd_256.5.bb
index 7f66c921ab..1485614c71 100644
--- a/meta/recipes-core/systemd/systemd_256.5.bb
+++ b/meta/recipes-core/systemd/systemd_256.5.bb
@@ -327,7 +327,7 @@ do_install() {
327 327
328 # if the user requests /tmp be on persistent storage (i.e. not volatile) 328 # if the user requests /tmp be on persistent storage (i.e. not volatile)
329 # then don't use a tmpfs for /tmp 329 # then don't use a tmpfs for /tmp
330 if [ "${VOLATILE_TMP_DIR}" != "yes" ]; then 330 if ! ${@bb.utils.contains('FILESYSTEM_PERMS_TABLES', 'files/fs-perms-volatile-tmp.txt', 'true', 'false', d)}; then
331 rm -f ${D}${rootlibexecdir}/systemd/system/tmp.mount 331 rm -f ${D}${rootlibexecdir}/systemd/system/tmp.mount
332 rm -f ${D}${rootlibexecdir}/systemd/system/local-fs.target.wants/tmp.mount 332 rm -f ${D}${rootlibexecdir}/systemd/system/local-fs.target.wants/tmp.mount
333 fi 333 fi