[PATCH] parser: allow to skip partitioning

8 views
Skip to first unread message

Stefano Babic

unread,
Jun 25, 2024, 5:48:01 AM (9 days ago) Jun 25
to swup...@googlegroups.com, Stefano Babic
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

Reply all
Reply to author
Forward
0 new messages