From 90d6712b3bead6fc6def7050787b5c4b2ce03260 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 24 Feb 2026 14:24:33 +0000 Subject: vcontainer: fix daemon mode missing shared directory for 9p DAEMON_SHARE_DIR was referenced in the CA certificate copy and idle watchdog paths but never assigned, causing 'cp: cannot create regular file /ca.crt: Permission denied' when starting the daemon. Create the share directory under DAEMON_SOCKET_DIR and register it as a 9p mount, matching the path expected by daemon_run(). Signed-off-by: Bruce Ashfield --- recipes-containers/vcontainer/files/vrunner.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/recipes-containers/vcontainer/files/vrunner.sh b/recipes-containers/vcontainer/files/vrunner.sh index 3f0b3448..b6455330 100755 --- a/recipes-containers/vcontainer/files/vrunner.sh +++ b/recipes-containers/vcontainer/files/vrunner.sh @@ -1266,8 +1266,13 @@ if [ "$DAEMON_MODE" = "start" ]; then exit 1 fi - # Create socket directory + # Create socket directory and shared folder for daemon 9p mkdir -p "$DAEMON_SOCKET_DIR" + DAEMON_SHARE_DIR="$DAEMON_SOCKET_DIR/share" + mkdir -p "$DAEMON_SHARE_DIR" + SHARE_TAG="${TOOL_NAME}_share" + hv_build_9p_opts "$DAEMON_SHARE_DIR" "$SHARE_TAG" + KERNEL_APPEND="$KERNEL_APPEND ${CMDLINE_PREFIX}_9p=1" # Add daemon command channel (backend-specific: virtio-serial or PV console) hv_build_daemon_opts -- cgit v1.2.3-54-g00ecf