Skip to content

Can Please confirm if md5 checksum is validated properly? #141

Open
@mikzuit

Description

I been trying to build from https://osmc.tv/download/ images but constantly give me the output bellow. Even though I checked with wget after donwloaded the img.gz and check the md5 they matched successfully , so is not the website md5.

command used:

docker run \
  --rm \
  --privileged \
  -v /dev:/dev \
  -v ${PWD}:/build:ro \
  -v ${PWD}/packer_cache:/build/packer_cache \
  -v ${PWD}/output-arm-image:/build/output-arm-image \
  ghcr.io/solo-io/packer-plugin-arm-image build samples/raspbian_golang.json

snippet of my builder:

"builders": [{
    "type": "arm-image",
    "image_type":"raspberrypi",
    "iso_url": "https://ftp.fau.de/osmc/osmc/download/installers/diskimages/OSMC_TGT_rbp2_20220314.img.gz",
    "iso_checksum": "md5:175b87851dbf1143df351cfb4134dbdd",
    "target_image_size": 4294967296
  }],  

output recceived:

==> arm-image: error downloading Image: [Checksums did not match for /build/packer_cache/1a719beb123cb2282c07f70f69d7bfe8b39c9487.iso.
==> arm-image: Expected: 28a8495c4da0ece10c8b12f0be6eb5f0
==> arm-image: Got: 175b87851dbf1143df351cfb4134dbdd
==> arm-image: *md5.digest]
Build 'arm-image' errored after 1 minute 43 seconds: error downloading Image: [Checksums did not match for /build/packer_cache/1a719beb123cb2282c07f70f69d7bfe8b39c9487.iso.
Expected: 28a8495c4da0ece10c8b12f0be6eb5f0
Got: 175b87851dbf1143df351cfb4134dbdd
*md5.digest]

expected output:

successfuly build

thanks

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions