]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd: Mitigate /var/tmp type mismatch issue
authorNiko Mauno <niko.mauno@vaisala.com>
Thu, 4 Jul 2024 07:15:18 +0000 (07:15 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Jul 2024 10:54:11 +0000 (11:54 +0100)
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.

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-core/systemd/systemd/00-create-volatile.conf

index c4277221a22edeb8506909e4732278c3e891689f..043b2ef1d82e3395408d02aae93f0bc07698ae53 100644 (file)
@@ -6,3 +6,4 @@
 d              /run/lock               1777    -       -       -
 d              /var/volatile/log               -       -       -       -
 d              /var/volatile/tmp               1777    -       -
+L              /var/tmp                -       -       -       -       /var/volatile/tmp