From e3cdc89b6cfeae59692e5223879a11393445b646 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 8 Oct 2020 17:05:13 +0200 Subject: [PATCH] osbuilder: Create target directory for agent When building with AGENT_SOURCE_BIN pointing to an already built kata-agent binary, the target directory needs to be created in the rootfs tree. Fixes #873 Signed-off-by: Ralf Haferkamp --- tools/osbuilder/rootfs-builder/rootfs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/osbuilder/rootfs-builder/rootfs.sh b/tools/osbuilder/rootfs-builder/rootfs.sh index 29682774c7..92c2e55829 100755 --- a/tools/osbuilder/rootfs-builder/rootfs.sh +++ b/tools/osbuilder/rootfs-builder/rootfs.sh @@ -559,6 +559,7 @@ EOT [ "$ARCH" == "aarch64" ] && export PATH=$OLD_PATH && rm -rf /usr/local/musl popd else + mkdir -p ${AGENT_DIR} cp ${AGENT_SOURCE_BIN} ${AGENT_DEST} OK "cp ${AGENT_SOURCE_BIN} ${AGENT_DEST}" fi