From efcd43f12fb97283a0de70268aabcbbf313514a8 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Wed, 27 Jan 2021 17:19:20 +0000 Subject: [PATCH] pressure-vessel: Expose host /etc in /run/host/etc There are three user-space Vulkan driver stacks for recent AMD GPUs: - Mesa RADV, open-source drivers from the Mesa community - AMDVLK, open-source drivers from AMD - AMDGPU-PRO, proprietary drivers from AMD (presumably based on AMDVLK) At least one of the two AMD-maintained drivers requires files that are installed in /etc/amd. Partially addresses <https://github.com/ValveSoftware/steam-runtime/issues/313>. Signed-off-by: Simon McVittie <smcv@collabora.com> --- pressure-vessel/wrap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pressure-vessel/wrap.c b/pressure-vessel/wrap.c index 45ccf696d..17e3e1576 100644 --- a/pressure-vessel/wrap.c +++ b/pressure-vessel/wrap.c @@ -1631,6 +1631,8 @@ main (int argc, pv_bwrap_add_api_filesystems (bwrap); /* The FlatpakExports will populate /run/host for us */ + flatpak_exports_add_host_etc_expose (exports, + FLATPAK_FILESYSTEM_MODE_READ_ONLY); flatpak_exports_add_host_os_expose (exports, FLATPAK_FILESYSTEM_MODE_READ_ONLY); -- GitLab