summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-05-11 18:13:49 -0700
committerAlex Deymo <deymo@google.com>2016-05-11 18:13:49 -0700
commita479a4d0039308fcfdda21f2a8ec8d040fd716f2 (patch)
tree468b086ef5a79d718d84f9c4970d42aa4b0e1b4e /scripts/update_payload/format_utils.py
parent46a9aae85e78179a0acd0d1efd1d99685fb827bb (diff)
Truncate source partitions to a multiple of 4 KiB.
When flashing partitions that aren't a multiple of 4 KiB using fastboot, the last block of these partitions would not be padded with zeros. Full and incremental paylaods will pad with zeros and write them on the new target partitions, but the first incremental package after flashing a device would fail. This patch truncates the source partitions that aren't multiple of 4 KiB, discarding the data on the last partial 4 KiB block. Bug: 28626303 TEST=`brillo_update_payload generate ..` a null-incremental payload; boot.img includes mostly SOURCE_COPY and one REPLACE operation at the end. Change-Id: I25e0172fb074392488d96cd00e711c68adfa0e7f
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions