Skip to content

Commit

Permalink
images/server: Do not hardcode architecture for devbuilds
Browse files Browse the repository at this point in the history
Dynamically determine the host architecture instead of hardcoded value
'x86_64'.

Signed-off-by: Anoop C S <[email protected]>
  • Loading branch information
anoopcs9 authored and mergify[bot] committed Jan 9, 2025
1 parent d7ea7a9 commit 6bae989
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion images/server/install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ get_epel_repo_if_needed() {
get_ceph_shaman_repo() {
ceph_ref="${CEPH_REPO_REF:-main}"
ceph_sha="${CEPH_REPO_SHA:-latest}"
url="https://shaman.ceph.com/api/search/?project=ceph&distros=${OS_BASE}/9/x86_64&flavor=default&ref=${ceph_ref}&sha1=${ceph_sha}"
ceph_arch=$( ([[ "$(arch)" = "aarch64" ]] && echo "arm64") || arch )
url="https://shaman.ceph.com/api/search/?project=ceph&distros=${OS_BASE}/9/${ceph_arch}&flavor=default&ref=${ceph_ref}&sha1=${ceph_sha}"
generate_repo_from_shaman "${url}" "ceph-${ceph_ref}.repo"
cat "/etc/yum.repos.d/ceph-${ceph_ref}.repo"
}
Expand Down

0 comments on commit 6bae989

Please sign in to comment.