Re: [alpine-devel] Bug on mkimage.sh logic.
mkimage.sh should be running on the host of the same architecture as the target. (i.e. creating images for arm on arm machines).
Since x86_64 and aarch64 have different signing keys respectively, UNTRUSTED signature is error expected.
You could use qemu (emulation mode on x86) to run Alpine aarch64 to build aarch64 image though.
There was somebody mentioned using Docker multi-arch support feature to build aarch64 images on x86 host but I didn't remember exactly.
On 2/21/19 10:42 AM, Magicloud Magiclouds wrote:
> I think I can build image of other architecture by using mkimage.sh
> from aports/scripts. But when doing that, it would verify files signed
> by aarch64 keys using x86_64 keys, and failed trusting.
> $ ./mkimage.sh --arch aarch64 --repository http://dl-cdn.alpinelinux.org/alpine/
> edge/main --profile arm
> OK: 0 MiB in 0 packages
> fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz
> ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/main: UNTRUSTED signature
> WARNING: Ignoring APKINDEX.066df28d.tar.gz: No such file or directory
> 1 errors; 0 distinct packages available
Received on Mon Feb 25 2019 - 15:42:36 UTC