From fcd005774d040eaf521ef77dd36daf721c28485d Mon Sep 17 00:00:00 2001 From: Dan Mihai Date: Fri, 9 Feb 2024 17:10:35 +0000 Subject: [PATCH] tools: avoid rootfs-image build "ln -s" error Avoid error when building for amd64 using: USE_CACHE=no AGENT_POLICY=yes DEBUG=1 \ tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh \ --build=rootfs-image Fixes: #9067 Signed-off-by: Dan Mihai --- tools/osbuilder/rootfs-builder/ubuntu/Dockerfile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/osbuilder/rootfs-builder/ubuntu/Dockerfile.in b/tools/osbuilder/rootfs-builder/ubuntu/Dockerfile.in index b2539bf68f..9c9c03a2d3 100644 --- a/tools/osbuilder/rootfs-builder/ubuntu/Dockerfile.in +++ b/tools/osbuilder/rootfs-builder/ubuntu/Dockerfile.in @@ -31,6 +31,6 @@ RUN apt-get update && \ protobuf-compiler \ xz-utils # aarch64 requires this name -- link for all -RUN ln -s /usr/bin/musl-gcc "/usr/bin/$(uname -m)-linux-musl-gcc" +RUN if [ ! -f "/usr/bin/$(uname -m)-linux-musl-gcc" ]; then ln -s /usr/bin/musl-gcc "/usr/bin/$(uname -m)-linux-musl-gcc"; fi @INSTALL_RUST@