image: strip metadata from images when used in other artifacts
authorDaniel Golle <daniel@makrotopia.org>
Fri, 15 Apr 2022 12:25:41 +0000 (13:25 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 15 Apr 2022 13:12:23 +0000 (14:12 +0100)
commit144760d20600a86fbf1974b94f2fcb0830df608e
tree9ca0c470b8a1ce041e757acad245f3d7d6ebf976
parent3c3d1e2da0c6acf4dd14be322f66343989fbf027
image: strip metadata from images when used in other artifacts

Image metadata and signature is of no use for images which are included
inside other artifacts (like an SD-card image). Strip them off before
using images in artifacts or stashing them for the ImageBuilder as the
contained signature breaks reproducibility.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 7a256d97d9ded84d1bfd531e775099774e7b6b06)
include/image-commands.mk