Merge pull request #2179 from balena-io/klutchell/qemu-v5.2.0+balena4

build/deploy: fix emulated builds to use fully static qemu binaries
This commit is contained in:
bulldozer-balena[bot] 2021-02-06 23:05:50 +00:00 committed by GitHub
commit e2c0c2f359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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`,
);