summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-02-24 14:24:33 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-02-26 01:05:01 +0000
commit90d6712b3bead6fc6def7050787b5c4b2ce03260 (patch)
tree0161ff07b08a2deee12d4a5588517fa24d362ed6
parent6d94266a86246ac23abdbc28ac3b5c6e522fb748 (diff)
downloadmeta-virtualization-90d6712b3bead6fc6def7050787b5c4b2ce03260.tar.gz
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 <bruce.ashfield@gmail.com>
-rwxr-xr-xrecipes-containers/vcontainer/files/vrunner.sh7
1 files changed, 6 insertions, 1 deletions
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
1266 exit 1 1266 exit 1
1267 fi 1267 fi
1268 1268
1269 # Create socket directory 1269 # Create socket directory and shared folder for daemon 9p
1270 mkdir -p "$DAEMON_SOCKET_DIR" 1270 mkdir -p "$DAEMON_SOCKET_DIR"
1271 DAEMON_SHARE_DIR="$DAEMON_SOCKET_DIR/share"
1272 mkdir -p "$DAEMON_SHARE_DIR"
1273 SHARE_TAG="${TOOL_NAME}_share"
1274 hv_build_9p_opts "$DAEMON_SHARE_DIR" "$SHARE_TAG"
1275 KERNEL_APPEND="$KERNEL_APPEND ${CMDLINE_PREFIX}_9p=1"
1271 1276
1272 # Add daemon command channel (backend-specific: virtio-serial or PV console) 1277 # Add daemon command channel (backend-specific: virtio-serial or PV console)
1273 hv_build_daemon_opts 1278 hv_build_daemon_opts