From 06fc733ce1e793043f28ce3e75d455715737e9ce Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Tue, 5 Mar 2024 17:59:24 +0000 Subject: [PATCH] podvm: Fix podvm-binaries build Nightly podvm-binaries build has been failing with: ``` 956.9 cd /src/cloud-api-adaptor/podvm/files/etc/kata-opa && ln -s -f "" default-policy.rego 956.9 ln: failed to create symbolic link 'default-policy.rego' -> '': No such file or directory ``` So port over the mkosi fix for this that Magnus did in #1718 Signed-off-by: stevenhorsman --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d3abbfb0b..0a5641081 100644 --- a/Makefile +++ b/Makefile @@ -221,7 +221,7 @@ podvm-binaries: --build-arg PODVM_DISTRO=$(PODVM_DISTRO) \ --build-arg ARCH=$(ARCH) \ --build-arg AA_KBC=$(AA_KBC) \ - --build-arg DEFAULT_AGENT_POLICY_FILE=$(DEFAULT_AGENT_POLICY_FILE) \ + $(if $(DEFAULT_AGENT_POLICY_FILE),--build-arg DEFAULT_AGENT_POLICY_FILE=$(DEFAULT_AGENT_POLICY_FILE),) \ $(DOCKER_OPTS) . podvm-image: