]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
volatile-binds: Remove workdir if OverlayFS fails
authorRicardo Simoes <ricardo.simoes@pt.bosch.com>
Thu, 18 Jul 2024 06:46:34 +0000 (08:46 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jul 2024 16:21:01 +0000 (17:21 +0100)
commit7872edbb33024fc710ac683eaef5635b89a1b994
treed50997a0d611ba223e86826092902634a9ec9bb0
parent323765607f262b5fea0f19e8a05aeffe5076235a
volatile-binds: Remove workdir if OverlayFS fails

To fulfill OverlayFS workdir requirements, the mount-copybind script
creates a workdir. But if the mount operation fails for any reason,
the workdir is left there.

Then, subsequent runs of mount-copybind will again try to
create the directory and pollute system logs with failed mkdir error
messages.

This commit mitigates the problem by unconditionally removing workdir
if the OverlayFS is not used or fails to run.

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