I suppose we do want to align this between systemd and initscripts based images, so if you can work on the needed adjustments, would be much appreciated. I was hoping setting VOLATILE_TMP_DIR correctly would be enough.
Alex On Wed, 15 Mar 2023 at 18:21, Markus Volk <[email protected]> wrote: > > That linking is done in initscripts. Removing this line will fix the issue > https://git.yoctoproject.org/poky/tree/meta/recipes-core/initscripts/initscripts-1.0/volatiles?h=master-next#n32 > > But that would affect not only ptest images. It would additionally be needed > to adjust that recently added commit: > https://git.yoctoproject.org/poky/commit/meta?h=master-next&id=d5d40479d706cbb382850b9479c5dd9bfb801c99 > > So this would be quite invasive. Overall the logic here is just the other way > around as described in the systemd documentation, where /tmp should be > volatile and /var/tmp should be covered by physical memory > > Am Mi, 15. Mär 2023 um 16:51:34 +0100 schrieb Alexander Kanavin > <[email protected]>: > > You probably need to find out what links /var/tmp to /tmp in ptest images, > and see if it can be reconfigured to do the same thing as the image where the > tests passed. Alex On Wed, 15 Mar 2023 at 16:07, Markus Volk > <[email protected]> wrote: > > Am Mi, 15. Mär 2023 um 08:27:33 +0100 schrieb Alexander Kanavin > <[email protected]>: Guesswork is a fast track to frustration. True :D > But thats what always happens to me if I dont know enough and can't find a > way to reproduce. Thanks to your hint on core-image-ptest-glib-2.0 I was able > to reproduce the issue. Running the test from /var/volatile/tmp didn't solve > the issue. But compared to core-image-ptest-glib-2.0 where /tmp links to > /var/tmp the tmpdir is handled by systemd tmp.mount in my image and thus is > not a symbolic link. According to systemd ducumentation /var/tmp and /tmp are > not the same and are handled differently > https://systemd.io/TEMPORARY_DIRECTORIES/ Still I have no idea how this > should be fixed or if the failed test could maybe ignored but I was able to > pass the tests in core-image-ptest-glib-2.0 by removing the /tmp symlink and > adding this line to fstab: tmpfs /tmp tmpfs defaults 0 0 After a reboot the > tests completed successful > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#178655): https://lists.openembedded.org/g/openembedded-core/message/178655 Mute This Topic: https://lists.openembedded.org/mt/97622689/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
