Skip to content

Commit 29a5131

Browse files
committed
build_image_util.sh: Don't compress extracted partition unnecessarily
I know I recently deduplicated the code between extract_update and generate_update recently, but now that generate_update will sometimes be called at a later time, I've realised that it is compressing and uploading the partition twice. Signed-off-by: James Le Cuirot <[email protected]>
1 parent 94f95ac commit 29a5131

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_library/build_image_util.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ generate_update() {
7979
local devkey="/usr/share/update_engine/update-payload-key.key.pem"
8080

8181
# Extract the partition if it isn't extracted already.
82-
[[ -s ${update} ]] || extract_update "${image_name}" "${disk_layout}"
82+
[[ -s ${update} ]] ||
83+
"${BUILD_LIBRARY_DIR}/disk_util" --disk_layout="${disk_layout}" \
84+
extract "${BUILD_DIR}/${image_name}" "USR-A" "${update}"
8385

8486
echo "Generating update payload, signed with a dev key"
8587
delta_generator \

0 commit comments

Comments
 (0)