alpine-chroot-install icon indicating copy to clipboard operation
alpine-chroot-install copied to clipboard

Enable arm64 support

Open pierregondois opened this issue 3 years ago • 1 comments

Hello, I am trying to run alpine-chroot-install on an arm64 machine. The script downloads and uses an x86_64 binary of apk. https://github.com/alpinelinux/alpine-chroot-install/blob/master/alpine-chroot-install#L81

Would it be possible to:

  1. Release an arm64 version of apk (and maybe an armeabi version aswell ?)
  2. Modify script to download the right version of apk depending on the arch of the machine

Regards

pierregondois avatar Apr 29 '21 16:04 pierregondois

It seems like it's possible by using environment variables and the arch argument:

APK_TOOLS_URI="https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.12.9/aarch64/apk.static" \
APK_TOOLS_SHA256="0164d47954c8a52e8ed10db1633174974a3b1e4182a1993a5a8343e394ee1bbc" \
  alpine-chroot-install \
 -a aarch64 \
 -d ...

theoparis avatar Dec 26 '21 05:12 theoparis