aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTadas Sutkaitis <tadasas@gmail.com>2024-06-16 19:49:16 +0300
committerTadas Sutkaitis <tadasas@gmail.com>2024-07-16 11:02:52 +0000
commit8b98145f23676121002ea654d2806b50e402edec (patch)
tree8247bf5d5e702952f22edb9ae834570e23f14d6a
parent428f37124986019bedc897469f9b1f3470b62082 (diff)
downloadkolla-8b98145f23676121002ea654d2806b50e402edec.tar.gz
kolla-8b98145f23676121002ea654d2806b50e402edec.zip
fix: apple silicon architecture selection
Closes-Bug: #2073256 Change-Id: I9fdccbe3bde07a7f9a1e6ac82b1096a024e1b0ee
-rw-r--r--kolla/common/config.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 1024cf1bd..cd66c0d6c 100644
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -132,15 +132,16 @@ _PROFILE_OPTS = [
]
hostarch = os.uname()[4]
-if hostarch == 'aarch64':
- debianarch = 'arm64'
-elif hostarch == 'x86_64':
- debianarch = 'amd64'
# NOTE: Apple Silicon reports as arm64 which is aarch64
if hostarch == "arm64":
hostarch = "aarch64"
+if hostarch == 'aarch64':
+ debianarch = 'arm64'
+elif hostarch == 'x86_64':
+ debianarch = 'amd64'
+
_CLI_OPTS = [
cfg.StrOpt('base', short='b', default='rocky',
choices=BASE_OS_DISTRO,