Skip to content
Snippets Groups Projects
Commit 0b5f53f6 authored by Simon McVittie's avatar Simon McVittie
Browse files

pressure-vessel-wrap: Add environment variables to share filesystems


This provides a generic way to get OS-specific library directories,
Vulkan layers' configuration, etc. into the container.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent fe33fa7f
No related branches found
No related tags found
1 merge request!179pressure-vessel: Share more directories with container
......@@ -210,6 +210,17 @@ The following environment variables (among others) are read by
: Equivalent to
`--copy-runtime-into="$PRESSURE_VESSEL_COPY_RUNTIME_INTO"`.
`PRESSURE_VESSEL_FILESYSTEMS_RO` (`:`-separated list of paths)
: Make these paths available read-only inside the container if they
exist, similar to `--filesystem` but read-only.
For example, MangoHUD and vkBasalt users might use
`PRESSURE_VESSEL_FILESYSTEMS_RO="$MANGOHUD_CONFIGFILE:$VKBASALT_CONFIG_FILE"`
if the configuration files are outside the home directory.
`PRESSURE_VESSEL_FILESYSTEMS_RW` (`:`-separated list of paths)
: Make these paths available read/write inside the container if they
exist, similar to `--filesystem`.
`PRESSURE_VESSEL_FDO_APP_ID` (string)
: Equivalent to
`--freedesktop-app-id="$PRESSURE_VESSEL_FDO_APP_ID"`.
......
......@@ -373,6 +373,9 @@ typedef struct
static const EnvMount known_required_env[] =
{
{ "PRESSURE_VESSEL_FILESYSTEMS_RO",
ENV_MOUNT_FLAGS_READ_ONLY | ENV_MOUNT_FLAGS_COLON_DELIMITED },
{ "PRESSURE_VESSEL_FILESYSTEMS_RW", ENV_MOUNT_FLAGS_COLON_DELIMITED },
{ "STEAM_COMPAT_APP_LIBRARY_PATH", ENV_MOUNT_FLAGS_DEPRECATED },
{ "STEAM_COMPAT_APP_LIBRARY_PATHS",
ENV_MOUNT_FLAGS_COLON_DELIMITED | ENV_MOUNT_FLAGS_DEPRECATED },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment