build/deploy: fix emulated builds to use fully static qemu binaries

Avoid possible situations where the local glibc may not support
the required syscalls for arm emulation during build/deploy.

Change-type: patch
Conneted-to: https://github.com/balena-io/qemu/issues/21
Signed-off-by: Kyle Harding <kyle@balena.io>
This commit is contained in:
Kyle Harding 2021-02-06 09:50:46 -05:00
parent 0a995ecc49
commit 15fc805f89
No known key found for this signature in database
GPG Key ID: 2AD73EC1FB4865E3

View File

@ -19,7 +19,7 @@ import type * as Dockerode from 'dockerode';
import { getBalenaSdk, stripIndent } from './lazy';
import Logger = require('./logger');
export const QEMU_VERSION = 'v5.2.0+balena1';
export const QEMU_VERSION = 'v5.2.0+balena4';
export const QEMU_BIN_NAME = 'qemu-execve';
export function qemuPathInContext(context: string) {
@ -96,7 +96,7 @@ export function installQemu(arch: string) {
const installStream = fs.createWriteStream(qemuPath);
const qemuArch = balenaArchToQemuArch(arch);
const fileVersion = QEMU_VERSION.replace('+', '.');
const fileVersion = QEMU_VERSION.replace('v', '').replace('+', '.');
const urlFile = encodeURIComponent(
`qemu-${fileVersion}-${qemuArch}.tar.gz`,
);