From 111bb21fa5f142c5b51d3d5b3ebef0afd6026d44 Mon Sep 17 00:00:00 2001 From: Arun Saravanan Balachandran <52521751+ArunSaravananBalachandran@users.noreply.github.com> Date: Sat, 20 May 2023 02:24:16 +0530 Subject: [PATCH] [build][201811] Remove compression of raw image (#15154) Why I did it To remove compression of the generated raw image during build. Work item tracking How I did it Removed usage of 'gzip' on the generated raw image. How to verify it Initiate build for 'target/sonic-broadcom.raw' and verify that the size of the raw image generated is same as RAW_IMAGE_DISK_SIZE. --- build_image.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/build_image.sh b/build_image.sh index 706f4e937c..4b7a0393e3 100755 --- a/build_image.sh +++ b/build_image.sh @@ -67,15 +67,7 @@ elif [ "$IMAGE_TYPE" = "raw" ]; then exit 1 } - gzip $OUTPUT_RAW_IMAGE - - [ -r $OUTPUT_RAW_IMAGE.gz ] || { - echo "Error : gzip $OUTPUT_RAW_IMAGE failed!" - exit 1 - } - - mv $OUTPUT_RAW_IMAGE.gz $OUTPUT_RAW_IMAGE - echo "The compressed raw image is in $OUTPUT_RAW_IMAGE" + echo "The raw image is in $OUTPUT_RAW_IMAGE" elif [ "$IMAGE_TYPE" = "kvm" ]; then