frank-primary: pre-create the SSD prefix tier path

The engine's create is not recursive: booting with only the state dir
mounted left the SSD prefix tier off ('cannot create
/data/kvcache/frank-primary: No such file or directory'). The serve
script now mkdir -p's the full path before podman run.
This commit is contained in:
Frank
2026-10-06 01:00:54 -07:00
parent fadad18da1
commit 2d9cecae6d
+5 -1
View File
@@ -95,7 +95,11 @@ if [ ! -f "$FRANK_PRIMARY_TEMPLATE" ]; then
exit 1
fi
mkdir -p "$FRANK_PRIMARY_STATE_DIR"
mkdir -p "$FRANK_PRIMARY_STATE_DIR/kvcache/frank-primary"
# The engine's create is NOT recursive: with only the state dir mounted, its
# "cannot create /data/kvcache/frank-primary: No such file or directory"
# left the SSD prefix tier off (measured 2026-10-06 boot ledger). Pre-create
# the full path on the host so the tier opens on first boot.
if [ ! -e /dev/kfd ] || [ ! -d /dev/dri ]; then
echo "ERROR: GPU device nodes absent (/dev/kfd, /dev/dri)" >&2