This pull requests comes to solve two problems related to the kraft command, more frequent on ARM64:
When running kraft build in the docker environment, errors appear because we miss directories like aarch64-gnu-gcc and kraft is trying to use the default compiler of the host architecture. We solve this by adding the missing directories to the docker-kraft image.
When running kraft run, we always enable hardware acceleration, generating failures when we run an image compiled for an architecture different from the host one. We solve this by checking the host architecture when generating the qemu command.
This PR should also solve the CI / CD errors that always appear on ARM64.
This pull requests comes to solve two problems related to the
kraft
command, more frequent on ARM64:kraft build
in the docker environment, errors appear because we miss directories likeaarch64-gnu-gcc
and kraft is trying to use the default compiler of the host architecture. We solve this by adding the missing directories to thedocker-kraft
image.kraft run
, we always enable hardware acceleration, generating failures when we run an image compiled for an architecture different from the host one. We solve this by checking the host architecture when generating theqemu
command.This PR should also solve the CI / CD errors that always appear on ARM64.
Signed-off-by: Răzvan Vîrtan virtanrazvan@gmail.com