mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 17:52:40 +00:00
suse: fix port URL detection for aarch64
Fix port URL detection for aarch64, and error out if an unknown architecture is detected. Fixes: #215 Signed-off-by: Marco Vedovati <mvedovati@suse.com>
This commit is contained in:
parent
72c5f6a223
commit
804286f90d
@ -35,15 +35,19 @@ SUSE_URL_BASE="${REPO_TRANSPORT}://${REPO_DOMAIN}"
|
||||
SUSE_PATH_OSS="/distribution/${OS_DISTRO,,}/$OS_VERSION/repo/oss"
|
||||
SUSE_PATH_UPDATE="/update/${OS_DISTRO,,}/$OS_VERSION/oss"
|
||||
|
||||
case "$(uname -m)" in
|
||||
arch="$(uname -m)"
|
||||
case "$arch" in
|
||||
x86_64)
|
||||
REPO_URL_PORT=""
|
||||
;;
|
||||
ppc|ppc64le)
|
||||
REPO_URL_PORT="/ports/ppc"
|
||||
;;
|
||||
aarch64)
|
||||
REPO_URL_PORT="/ports/aarch64"
|
||||
;;
|
||||
*)
|
||||
REPO_URL_PORT="/ports/$arch"
|
||||
die "Unsupported architecture: $arch"
|
||||
;;
|
||||
esac
|
||||
SUSE_FULLURL_OSS="${SUSE_URL_BASE}${REPO_URL_PORT}${SUSE_PATH_OSS}"
|
||||
|
Loading…
Reference in New Issue
Block a user