diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-08-17 18:44:56 +0000 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-08-17 19:03:57 +0000 |
| commit | 01ea1f76641603e6dc0845ce2bc59c1eab2e8a3f (patch) | |
| tree | 4029af31fad61f94a2c952c4c9e7eca4367d9627 /scripts | |
| parent | 70deb1495cb03e5607cfb2dec3493f5223a1868e (diff) | |
| download | vyos-build-01ea1f76641603e6dc0845ce2bc59c1eab2e8a3f.tar.gz vyos-build-01ea1f76641603e6dc0845ce2bc59c1eab2e8a3f.zip | |
Testsuite: T9014: restrict to amd64/arm64 and require --uefi on arm64
QEMU_CONFIG only defines profiles for amd64 and arm64, and arm64 guests
only boot via UEFI, so fail fast with a clear message instead of
running into an unsupported-architecture error deep into the install.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/check-qemu-install | 7 |
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}:~\$' |
