Decompression OK, trailing garbage ignored

gzip -d openwrt-23.05.2-x86-64-generic-ext4-combined.img.gz

gzip: openwrt-23.05.2-x86-64-generic-ext4-combined.img.gz: decompression OK, trailing garbage ignored

sha256sum is correct
Is my approach wrong?

Ignore it.

2 Likes

The images have "image metadata" attached, behind the compressed payload. If you write the image to your disk manually, you can just ignore this (gzip does not know about it and rightfully considers it as trailing garbage and ignores it). If you use sysupgrade to upgrade your OpenWrt installtion, you should not decompress it beforehand and feed it to the sysupgrade binary completely (which knows about how to handle the image metadata).

3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.