pub const ENV_FILE_MOUNTS: &str = "MSB_FILE_MOUNTS";Expand description
Environment variable carrying virtiofs file volume mount specs for guest init.
Used when the host path is a single file rather than a directory. The SDK
wraps each file in an isolated staging directory (hard-linked to preserve
the same inode) and shares that directory via virtiofs. Agentd mounts the
share at FILE_MOUNTS_DIR/<tag>/ and bind-mounts the file to the
guest path.
Format: tag:filename:guest_path[:ro][;tag:filename:guest_path[:ro];...]
tag— virtiofs tag name (required, matches the tag used in--mount)filename— name of the file inside the virtiofs share (required)guest_path— final file path inside the guest (required)ro— mount read-only (optional suffix)
Entries are separated by ;.
Examples:
MSB_FILE_MOUNTS=fm_config:app.conf:/etc/app.confMSB_FILE_MOUNTS=fm_config:app.conf:/etc/app.conf:roMSB_FILE_MOUNTS=fm_a:a.sh:/usr/bin/a.sh;fm_b:b.sh:/usr/bin/b.sh