]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Thu, 21 Jan 2021 06:02:54 +0000 (14:02 +0800)
commit365b10a95ac0b04ca48a53e55cf5a0a330f1bc2f
treefbd77675dfe76312198d5108120138d82ad96a36
parent6136e1312fc69b1b6196aa2fb8986d99ad46e7a1
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: Anuj Mittal <anuj.mittal@intel.com>
scripts/lib/wic/plugins/imager/direct.py