From 47dc5a983466d77d8161966670f7ef4fb6c151b2 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 10 Mar 2023 09:32:08 -0800 Subject: [PATCH] chore: support building Fedora on arm64 AKA aarch64 By default [1] the `aarch64` ARCH value is converted to `arm64`. But Fedora uses `aarch64` to refer to the architecture. Convert incoming ARCH values of `arm64` into `aarch64` as is already done for `amd64` -> `x86_64` [1] https://github.com/openstack/diskimage-builder/blob/174089a6a5f1ff4628a9d103e4328a1b1298e241/diskimage_builder/lib/common-defaults#L29-L30 Change-Id: I6d9698e45b1183007bac49544da196ec78a7ac6a --- diskimage_builder/elements/fedora/root.d/10-fedora-cloud-image | 3 +++ 1 file changed, 3 insertions(+) diff --git a/diskimage_builder/elements/fedora/root.d/10-fedora-cloud-image b/diskimage_builder/elements/fedora/root.d/10-fedora-cloud-image index f3eb7bb17..4cf69b6b0 100755 --- a/diskimage_builder/elements/fedora/root.d/10-fedora-cloud-image +++ b/diskimage_builder/elements/fedora/root.d/10-fedora-cloud-image @@ -12,6 +12,9 @@ set -o pipefail if [ 'amd64' = "$ARCH" ] ; then ARCH="x86_64" fi +if [[ "${ARCH}" == "arm64" ]]; then + ARCH="aarch64" +fi DIB_LOCAL_IMAGE=${DIB_LOCAL_IMAGE:-""}