]> code.ossystems Code Review - openembedded-core.git/commit
wic: Ensure internal workdir is not reused
authorPaul Barker <pbarker@konsulko.com>
Tue, 19 Jan 2021 16:26:06 +0000 (16:26 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jan 2021 22:46:11 +0000 (22:46 +0000)
commit2e40c8d4109024ff704c5ce40d98050ca7f34dd5
tree4c2d50599f21dcd96195dfded528bad2d92381b5
parent437f795cb1cb4d532ff90f82b819dee02ae0a0f7
wic: Ensure internal workdir is not reused

If a path is specified for the internal wic working directory using
the -w/--workdir argument then it must not already exist. Re-using a
previous workdir could easily result in rootfs and intermediate files
from a previous build being added to the current image.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/plugins/imager/direct.py