summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2023-02-27 00:00:40 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-28 07:53:54 +0000
commitd5d40479d706cbb382850b9479c5dd9bfb801c99 (patch)
tree1443017d0817af40b30b19c02981ecc10a3af2e3 /meta/recipes-core/systemd
parentea4c56e2e883b904380bc34e9202436322f41bf1 (diff)
downloadpoky-d5d40479d706cbb382850b9479c5dd9bfb801c99.tar.gz
VOLATILE_TMP_DIR: add
Provide a mechanism to allow users to choose whether the /tmp directory is on persistent storage (non-volatile) or a RAM-based tmpfs (volatile). The default is volatile. Works for both sysvinit-based and systemd-based systems. (From OE-Core rev: 8b76c0637eaeaf5bd5e696680cd74b7a642f4157) Signed-off-by: Trevor Woerner <twoerner@gmail.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_252.5.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_252.5.bb b/meta/recipes-core/systemd/systemd_252.5.bb
index ea468da150..8b92b2cf42 100644
--- a/meta/recipes-core/systemd/systemd_252.5.bb
+++ b/meta/recipes-core/systemd/systemd_252.5.bb
@@ -288,6 +288,13 @@ do_install() {
288 rm -rf ${D}${localstatedir}/log/journal/remote 288 rm -rf ${D}${localstatedir}/log/journal/remote
289 fi 289 fi
290 290
291 # if the user requests /tmp be on persistent storage (i.e. not volatile)
292 # then don't use a tmpfs for /tmp
293 if [ "${VOLATILE_TMP_DIR}" != "yes" ]; then
294 rm -f ${D}${rootlibdir}/systemd/system/tmp.mount
295 rm -f ${D}${rootlibdir}/systemd/system/local-fs.target.wants/tmp.mount
296 fi
297
291 install -d ${D}${systemd_system_unitdir}/graphical.target.wants 298 install -d ${D}${systemd_system_unitdir}/graphical.target.wants
292 install -d ${D}${systemd_system_unitdir}/multi-user.target.wants 299 install -d ${D}${systemd_system_unitdir}/multi-user.target.wants
293 install -d ${D}${systemd_system_unitdir}/poweroff.target.wants 300 install -d ${D}${systemd_system_unitdir}/poweroff.target.wants