Skip to content

Commit 6bae989

Browse files
anoopcs9mergify[bot]
authored andcommitted
images/server: Do not hardcode architecture for devbuilds
Dynamically determine the host architecture instead of hardcoded value 'x86_64'. Signed-off-by: Anoop C S <[email protected]>
1 parent d7ea7a9 commit 6bae989

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

images/server/install-packages.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ get_epel_repo_if_needed() {
6060
get_ceph_shaman_repo() {
6161
ceph_ref="${CEPH_REPO_REF:-main}"
6262
ceph_sha="${CEPH_REPO_SHA:-latest}"
63-
url="https://shaman.ceph.com/api/search/?project=ceph&distros=${OS_BASE}/9/x86_64&flavor=default&ref=${ceph_ref}&sha1=${ceph_sha}"
63+
ceph_arch=$( ([[ "$(arch)" = "aarch64" ]] && echo "arm64") || arch )
64+
url="https://shaman.ceph.com/api/search/?project=ceph&distros=${OS_BASE}/9/${ceph_arch}&flavor=default&ref=${ceph_ref}&sha1=${ceph_sha}"
6465
generate_repo_from_shaman "${url}" "ceph-${ceph_ref}.repo"
6566
cat "/etc/yum.repos.d/ceph-${ceph_ref}.repo"
6667
}

0 commit comments

Comments
 (0)