]> code.ossystems Code Review - openembedded-core.git/commit
wic: Preserve intermediate files
authorPaul Barker <pbarker@konsulko.com>
Wed, 8 Jan 2020 11:25:45 +0000 (11:25 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Jan 2020 20:32:04 +0000 (20:32 +0000)
commit07b6b284204e912b5d08bdd0ca51b766ab7dd9c1
tree60a4364197f38376a7c0116dce18575c1cf9ac04
parent2ac7f51e99a2435e27cc3b8f5d26b58519638ed7
wic: Preserve intermediate files

When debugging issues or trying to add new features in wic it's useful
to examine the intermediate files created by the tool such as images of
the individual partitions. Previously these files were created in a
subdirectory of IMGDEPLOYDIR and, deleted by wic itself and then the
working subdirectory completely removed at the end of IMAGE_CMD_wic.
Instead we should work in a staging directory named build-wic and leave
behind intermediate files for analysis if necessary.

This has the added benefit of allowing individual partition images to
be preserved by adding commands to IMAGE_CMD_wic_append() in an image
recipe if needed. This is useful where an update system requires exact
sized and pre-formatted partition images for deployment.

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