summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiko Mauno <niko.mauno@vaisala.com>2024-08-09 14:57:31 +0000
committerSteve Sakoman <steve@sakoman.com>2024-08-19 06:09:14 -0700
commit3cc8c3520cedb66500757f843f757646da69ab30 (patch)
treecee5822363096bc3165c7102edf67bed544edabf
parent6b67a84d81c21738be8b3a043c0e32441b6a1d51 (diff)
downloadpoky-3cc8c3520cedb66500757f843f757646da69ab30.tar.gz
systemd: Mitigate /var/tmp type mismatch issue
The base-files recipe provides /var/tmp -> /var/volatile/tmp symlink which is in conflict with systemd upstream tmpfiles.d/tmp.conf which defines it as a directory (or subvolume on btrfs). This generates following error in journal: Jul 03 15:37:21 qemux86-64 systemd-tmpfiles[158]: "/var/tmp" already exists and is not a directory. Mitigate the issue by defining /var/tmp as symlink corresponding to the one created by base-files. (From OE-Core rev: 1f1f6f45e3cfe24dfee8a09d01a5d32f3080e381) (From OE-Core rev: 5e0e1fca220df8d2488770fc90ea5e4fab426a3c) Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-core/systemd/systemd/00-create-volatile.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/00-create-volatile.conf b/meta/recipes-core/systemd/systemd/00-create-volatile.conf
index c4277221a2..043b2ef1d8 100644
--- a/meta/recipes-core/systemd/systemd/00-create-volatile.conf
+++ b/meta/recipes-core/systemd/systemd/00-create-volatile.conf
@@ -6,3 +6,4 @@
6d /run/lock 1777 - - - 6d /run/lock 1777 - - -
7d /var/volatile/log - - - - 7d /var/volatile/log - - - -
8d /var/volatile/tmp 1777 - - 8d /var/volatile/tmp 1777 - -
9L /var/tmp - - - - /var/volatile/tmp