]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
volatile-binds: Do not create workdir if OverlayFS is disabled
authorRicardo Simoes <ricardo.simoes@pt.bosch.com>
Thu, 18 Jul 2024 06:46:33 +0000 (08:46 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jul 2024 16:21:01 +0000 (17:21 +0100)
commit323765607f262b5fea0f19e8a05aeffe5076235a
tree8b9e1647b25c36cf9f446c51923396d2a43b667e
parent8af6ba2a0a10f8d8995aab322d9f4cfbf1880228
volatile-binds: Do not create workdir if OverlayFS is disabled

When the mountpoint parameter is a directory, the mount-copybind will
first try to use OverlayFS. Because of that, it needs to create the
OverlayFS workdir (determined by the overlay_workdir).

But if the environment variable MOUNT_COPYBIND_AVOID_OVERLAYFS is set
to "1", the script uses bind mount. In that case, the overlay_workdir
is useless, leaving the spec parent directory in a dirty state.

This commit changes mount-copybind so that the overlay_workdir is only
created when MOUNT_COPYBIND_AVOID_OVERLAYFS is not set to 1.

Signed-off-by: Ricardo Simoes <ricardo.simoes@pt.bosch.com>
Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/volatile-binds/files/mount-copybind