From: Niko Mauno Date: Thu, 4 Jul 2024 07:15:18 +0000 (+0000) Subject: systemd: Mitigate /var/tmp type mismatch issue X-Git-Tag: yocto-5.2~2316 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f1f6f45e3cfe24dfee8a09d01a5d32f3080e381;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Alexandre Belloni --- diff --git a/meta/recipes-core/systemd/systemd/00-create-volatile.conf b/meta/recipes-core/systemd/systemd/00-create-volatile.conf index c4277221a22..043b2ef1d82 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 @@ d /run/lock 1777 - - - d /var/volatile/log - - - - d /var/volatile/tmp 1777 - - +L /var/tmp - - - - /var/volatile/tmp