diff mbox series

BUG: all images runs in streaming mode

Message ID 20200320123803.17474-1-sbabic@denx.de
State Accepted
Headers show
Series BUG: all images runs in streaming mode | expand

Commit Message

Stefano Babic March 20, 2020, 12:38 p.m. UTC
Commit 16f44d8b4 is supposed to run all partioners before installing
the first image in streaming mode. The loop is intended to run for all
partitioners mode, but without checking the type, it runs for all
images, independently if it is supposed to change a partition. This
results in an update failure if the image must be treated by a handler
that does not support streaming mode.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 core/stream_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/core/stream_interface.c b/core/stream_interface.c
index 46a0dc0..163c253 100644
--- a/core/stream_interface.c
+++ b/core/stream_interface.c
@@ -256,7 +256,7 @@  static int extract_files(int fd, struct swupdate_cfg *software)
 				 * sure that the UBI partitions are adjusted beforehand
 				 */
 				LIST_FOREACH(part, &software->images, next) {
-					if (!part->install_directly) {
+					if (!part->install_directly && part->is_partitioner) {
 						TRACE("Need to adjust partition %s before streaming %s",
 							part->volname, img->fname);
 						if (install_single_image(part, software->globals.dry_run)) {