]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
mount-copybind: add MOUNT_COPYBIND_AVOID_OVERLAYFS env var to skip OverlayFS
authorLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 25 Mar 2022 18:40:32 +0000 (18:40 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Mar 2022 09:33:28 +0000 (09:33 +0000)
commita8e7dca69054798b1c9843a0de889cef3e261c4f
tree9a78f13ef3d6712c31cef20ff37bf72f1e741ac2
parent56c7962a6c31acfe0e118f713954aeafd7e2d9c0
mount-copybind: add MOUNT_COPYBIND_AVOID_OVERLAYFS env var to skip OverlayFS

In some cases we don't want to even attempt to set up OverlayFS, for
example because SELinux in enforcing mode would kill the process
attempting to use the mount. See:

https://lore.kernel.org/all/CA+FmFJBDwt52Z-dVGfuUcnRMiMtGPhK4cCQJ=J_fg0r3x-b6ng@mail.gmail.com/T/#mef98aa406324096d1889d3d467251f30456f403c

If MOUNT_COPYBIND_AVOID_OVERLAYFS=1 is set, skip directly to copy and
bind mount.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-core/volatile-binds/files/mount-copybind