]> code.ossystems Code Review - openembedded-core.git/commit
image.bbclass: Empty /var/volatile if it is a mount point
authorRandy Witt <randy.e.witt@linux.intel.com>
Tue, 24 Mar 2015 17:26:36 +0000 (10:26 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Mar 2015 17:52:43 +0000 (17:52 +0000)
commitb574ac6f3c9e07f0054ed4261bc1f83583c29c53
tree8555fa8ccb2697b06e3431d21d3cc91c0c3c211f
parent98230d2d049c742c349f35b256b13afbc3d26235
image.bbclass: Empty /var/volatile if it is a mount point

If /var/volatile is a mount point it shouldn't contain any files before
mount time. If files are there, they will no longer be able to be accessed
once the tmpfs gets mounted at /var/volatile.

This problem can be seen for instance when systemd creates
/var/volatile/log/journal as part of its package installation. It then
assumes the journal is persistent even though /var/volatile/log/journal
goes away shortly thereafter.

This change makes sure that there are no files in /var/volatile if it is
to be used as a mount point.

[Yocto #7388]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass