Message ID | 20240704071519.566147-1-niko.mauno@vaisala.com |
---|---|
State | New |
Headers | show |
Series | [1/2] systemd: Mitigate /var/tmp type mismatch issue | expand |
There's a pending patch from Changqing, which also handles /var/tmp. The title is: [OE-core] [PATCH] VOLATILE_TMP_DIR: Extend to specify the persistence of /var/tmp I think we'd better handle that patch first because you may need to change to the way you used in your second patch to handle this /var/tmp link. Regards, Qi On 7/4/24 15:15, Niko Mauno via lists.openembedded.org wrote: > From: Niko Mauno <niko.mauno@vaisala.com> > > 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> > --- > meta/recipes-core/systemd/systemd/00-create-volatile.conf | 1 + > 1 file changed, 1 insertion(+) > > 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 @@ > d /run/lock 1777 - - - > d /var/volatile/log - - - - > d /var/volatile/tmp 1777 - - > +L /var/tmp - - - - /var/volatile/tmp > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#201520): https://lists.openembedded.org/g/openembedded-core/message/201520 > Mute This Topic: https://lists.openembedded.org/mt/107033957/7304865 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [Qi.Chen@eng.windriver.com] > -=-=-=-=-=-=-=-=-=-=-=- >
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 @@ d /run/lock 1777 - - - d /var/volatile/log - - - - d /var/volatile/tmp 1777 - - +L /var/tmp - - - - /var/volatile/tmp