summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-08-17 21:26:57 +0200
committerGitHub <noreply@github.com>2026-08-17 21:26:57 +0200
commit27fea7cdf30bf5d87291425d6ee080a1debd0939 (patch)
tree3f1919b2e4e3865060c9fe74a2a7d14008aa7e79 /scripts
parent70deb1495cb03e5607cfb2dec3493f5223a1868e (diff)
parent44130326e963b8cc94e762e27b966a133446a84a (diff)
downloadvyos-build-27fea7cdf30bf5d87291425d6ee080a1debd0939.tar.gz
vyos-build-27fea7cdf30bf5d87291425d6ee080a1debd0939.zip
Merge pull request #1258 from vyos/T9014-smoketests
T9014: Run smoketests on arm64 platform
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-qemu-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index b3dd8ce6..85d6c024 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -166,6 +166,13 @@ args = parser.parse_args()
if os.geteuid() != 0:
exit('You need to have root privileges to run this script.')
+if platform.machine() not in ['amd64', 'x86_64', 'arm64', 'aarch64']:
+ exit(f'Unsupported host architecture "{platform.machine()}" - this script '
+ 'only runs on amd64 or arm64 hosts.')
+
+if platform.machine() in ['arm64', 'aarch64'] and not args.uefi:
+ exit('--uefi is mandatory when running on arm64 hosts.')
+
if args.cloud_init:
hostname = CI_CONFIG_ARGS['hostname']
op_mode_prompt = rf'vyos@{hostname}:~\$'