From 8d785baaeacd4b8cd37586ea015f5fed88fe2dd7 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 6 Feb 2024 15:54:47 +0300 Subject: [PATCH] Decompress image using xz --- builder/image-build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/builder/image-build.sh b/builder/image-build.sh index 987ad81bdd..7a3ce7b485 100755 --- a/builder/image-build.sh +++ b/builder/image-build.sh @@ -69,10 +69,9 @@ get_image() { echo_stamp "Downloading complete" "SUCCESS" \ else echo_stamp "Linux distribution already donwloaded"; fi - echo_stamp "Unzipping Linux distribution image" \ - && unzip -p ${BUILD_DIR}/${RPI_ZIP_NAME} ${RPI_IMAGE_NAME} > $1 \ - && echo_stamp "Unzipping complete" "SUCCESS" \ - || (echo_stamp "Unzipping was failed!" "ERROR"; exit 1) + echo_stamp "Unzipping Linux distribution image" + apt-get install -y xz-utils + xz -d -v ${BUILD_DIR}/${RPI_ZIP_NAME} } get_image ${IMAGE_PATH} ${SOURCE_IMAGE}