mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
handle riscv compat
This commit is contained in:
@@ -10,15 +10,13 @@ rel_pwd="${pwd#"$(pwd)"}"
|
|||||||
|
|
||||||
COMPAT_ARCH=$(uname -m)
|
COMPAT_ARCH=$(uname -m)
|
||||||
|
|
||||||
|
platform=linux/$COMPAT_ARCH
|
||||||
|
|
||||||
case $COMPAT_ARCH in
|
case $COMPAT_ARCH in
|
||||||
x86_64)
|
x86_64)
|
||||||
platform=linux/amd64;;
|
platform=linux/amd64;;
|
||||||
aarch64|arm64)
|
aarch64)
|
||||||
platform=linux/arm64;;
|
platform=linux/arm64;;
|
||||||
*)
|
|
||||||
echo "Unsupported architecture: $COMPAT_ARCH" >&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$FORCE_COMPAT" = 1 ] || ( [ "$REQUIRES" = "linux" ] && [ "$(uname -s)" != "Linux" ] ) || ( [ "$REQUIRES" = "debian" ] && ! which dpkg > /dev/null ); then
|
if [ "$FORCE_COMPAT" = 1 ] || ( [ "$REQUIRES" = "linux" ] && [ "$(uname -s)" != "Linux" ] ) || ( [ "$REQUIRES" = "debian" ] && ! which dpkg > /dev/null ); then
|
||||||
|
|||||||
Reference in New Issue
Block a user