From 29a5131380588076b158259878302bd6193528db Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Fri, 20 Dec 2024 17:55:11 +0000 Subject: [PATCH] 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 --- build_library/build_image_util.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_library/build_image_util.sh b/build_library/build_image_util.sh index 2549e4667d..225e0c864c 100755 --- a/build_library/build_image_util.sh +++ b/build_library/build_image_util.sh @@ -79,7 +79,9 @@ generate_update() { local devkey="/usr/share/update_engine/update-payload-key.key.pem" # Extract the partition if it isn't extracted already. - [[ -s ${update} ]] || extract_update "${image_name}" "${disk_layout}" + [[ -s ${update} ]] || + "${BUILD_LIBRARY_DIR}/disk_util" --disk_layout="${disk_layout}" \ + extract "${BUILD_DIR}/${image_name}" "USR-A" "${update}" echo "Generating update payload, signed with a dev key" delta_generator \