support aarch64
This commit is contained in:
parent
df50ccd6b3
commit
6350e3cb72
2 changed files with 38 additions and 4 deletions
17
fetch-platform-rootfs
Executable file
17
fetch-platform-rootfs
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
case $TARGETPLATFORM in
|
||||
linux-arm64)
|
||||
ARCH=aarch64
|
||||
;;
|
||||
*)
|
||||
ARCH=amd64
|
||||
;;
|
||||
esac
|
||||
|
||||
DOWNLOAD="https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-$ARCH.tar.gz"
|
||||
wget "$DOWNLOAD"
|
||||
|
||||
sha256_name=SHA256_$ARCH && echo "${!sha256_name} /s6-overlay-$ARCH.tar.gz" | sha256sum -c - || exit 1
|
||||
mv /s6-overlay-$ARCH.tar.gz /s6-overlay.tar.gz
|
Loading…
Add table
Add a link
Reference in a new issue