]> 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)
committerSteve Sakoman <steve@sakoman.com>
Thu, 28 Jan 2021 14:41:47 +0000 (04:41 -1000)
commitfb884fb9e5eef1c322ae7c196aa19bd32dcf6897
tree7d45e91068968dfda30182f6da88ad004b7ad709
parent7acb39f02b8160600d1508da114e98dd1c3e76ed
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>
(cherry picked from commit 2e40c8d4109024ff704c5ce40d98050ca7f34dd5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
(cherry picked from commit 5dcdb76f89c2e5bbc383e2921589482cd1c51491)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
scripts/lib/wic/plugins/imager/direct.py