Skip to content

Commit

Permalink
Use minimum 512B of header with delta updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed Nov 26, 2024
1 parent 6c8aafe commit 93866f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/keytools/sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -2263,6 +2263,10 @@ static void set_signature_sizes(int secondary)
else
printf("Environment variable IMAGE_HEADER_SIZE=%u overridden.\n", suggested_sz);
}
if ((CMD.header_sz == 256) && (CMD.delta)) {
printf("Adjusting header size to fit base image of delta update \n");
CMD.header_sz <<= 1;
}
printf("Manifest header size: %u\n", CMD.header_sz);
}

Expand Down

0 comments on commit 93866f7

Please sign in to comment.