intel / bmap-tools

BMAP Tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail if artifact is compressed with unsupported algorithm

fmoessbauer opened this issue · comments

Currently, the compression algorithm is determined based on the file extension on a best-effort basis. This is implemented in [1].
If no compression algorithm matched, it is assumed that the artifact is compressed. This is non ideal, as the flashing then just fails due to incorrect checksums, without giving the user any indication about the root-cause. It would be better to just fail in this case, indicating that no support for that algorithm / file extension is available.

We observed this issue at a larger scale when transitioning from .xz compressed images to .zst compressed images, which required bmaptools >= 3.6, while many users still had 3.5 only.

Hello, the project was moved and now owned by a new team. Please, work with them. Check the README.md file. Thanks!