Add the same feature off images, files and script. It can be decided
with an embedded script if partitioning must occur.
Signed-off-by: Stefano Babic <
stefan...@swupdate.org>
---
parser/parser.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/parser/parser.c b/parser/parser.c
index c18fe52a..3f96ee3f 100644
--- a/parser/parser.c
+++ b/parser/parser.c
@@ -531,6 +531,10 @@ static int _parse_partitions(parsertype p, void *cfg, void *setting, const char
free_image(partition);
return -1;
}
+ if (skip || partition->skip != SKIP_NONE) {
+ free_image(partition);
+ continue;
+ }
TRACE("Partition: %s new size %lld bytes",
!strcmp(partition->type, "ubipartition") ? partition->volname : partition->device,
partition->partsize);
--
2.34.1