]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
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)
commit1f1f6f45e3cfe24dfee8a09d01a5d32f3080e381
treea69738da79ecf05f02a58d21abf6bf518316718f
parent2f43da91ba20d18bc419bca7651bb383a51f20af
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.

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