diff --git a/pressure-vessel/flatpak-exports.c b/pressure-vessel/flatpak-exports.c index 6544cfac83333eda7180006c0e25667f4fa66663..c951f307e002370665ff77dfced8cacfff08f4ea 100644 --- a/pressure-vessel/flatpak-exports.c +++ b/pressure-vessel/flatpak-exports.c @@ -390,6 +390,13 @@ flatpak_exports_append_bwrap_args (FlatpakExports *exports, flatpak_bwrap_add_args (bwrap, os_bind_mode, "/usr", "/run/host/usr", NULL); + /* /usr/local points to ../var/usrlocal on ostree systems, + so bind-mount that too. */ + if (flatpak_exports_stat_in_host (exports, "/var/usrlocal", &buf, 0, NULL) && + S_ISDIR (buf.st_mode)) + flatpak_bwrap_add_args (bwrap, + os_bind_mode, "/var/usrlocal", "/run/host/var/usrlocal", NULL); + for (i = 0; flatpak_abs_usrmerged_dirs[i] != NULL; i++) { const char *subdir = flatpak_abs_usrmerged_dirs[i];