From d4cccd0471cd5b57c900ef13e5dedd30f79f9de7 Mon Sep 17 00:00:00 2001 From: Casimir Saastamoinen Date: Thu, 24 Aug 2023 15:09:51 +0300 Subject: [PATCH] Enable binfmts incase it is disabled Pick-to: 6.5 6.6 Task-number: COIN-1075 Change-Id: I476833e87af213b4fd7eced4accdc19f093c6824 Reviewed-by: Toni Saario --- coin/instructions/prepare_building_env.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/coin/instructions/prepare_building_env.yaml b/coin/instructions/prepare_building_env.yaml index f816ef56ea5..53fc2ae60c0 100644 --- a/coin/instructions/prepare_building_env.yaml +++ b/coin/instructions/prepare_building_env.yaml @@ -305,6 +305,14 @@ instructions: condition: property property: target.osVersion in_values: [QEMU] + # This fixes an issue where binfmts is sometimes disabled on the test VMs + - type: ExecuteCommand + command: sudo update-binfmts --enable + userMessageOnFailure: "Failed to enable binfmts" + enable_if: + condition: property + property: target.osVersion + equals_value: QEMU # Windows on Arm, cross-compilation with MSVC - type: Group