Skip to content

Commit

Permalink
qemu: uncompress image if it passes test
Browse files Browse the repository at this point in the history
  • Loading branch information
karpa4o4 committed Apr 28, 2021
1 parent 482439d commit 24872ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qemu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ reset=$(tput sgr0)

curl -L -f -o "/tmp/${IMAGE}" "${IMAGE_URL}"

if gunzip -t "/tmp/${IMAGE}"; then
mv "/tmp/${IMAGE}" "/tmp/${IMAGE}.gz"

gunzip "/tmp/${IMAGE}.gz"
fi

if [ ! -z ${IMAGE} ]; then
info "trying to emulate Raspberry Pi 3 since IMAGE was specified."

Expand Down

0 comments on commit 24872ae

Please sign in to comment.