Skip to content

Commit

Permalink
Decompress image using xz
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Feb 6, 2024
1 parent d6acb0a commit 8d785ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions builder/image-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 8d785ba

Please sign in to comment.