mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
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 <jlecuirot@microsoft.com>
This commit is contained in:
parent
94f95acdc7
commit
29a5131380
@ -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 \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user