diff --git a/src/runtime.c b/src/runtime.c index 39e84f967ce8f90fe13306c9ea2485769a80ac0f..a33585b63bd727b981a7203068d44c031a3d2ea2 100644 --- a/src/runtime.c +++ b/src/runtime.c @@ -3150,10 +3150,6 @@ pv_runtime_bind (PvRuntime *self, g_return_val_if_fail (!pv_bwrap_was_finished (bwrap), FALSE); g_return_val_if_fail (error == NULL || *error == NULL, FALSE); - /* Start with just the root tmpfs (which appears automatically) - * and the standard API filesystems */ - pv_bwrap_add_api_filesystems (bwrap); - if (!bind_runtime (self, bwrap, error)) return FALSE; diff --git a/src/wrap.c b/src/wrap.c index c17027ca20a9fc8f57c1a0dee4847487216cd333..24bb389e9ece2c6e730cd5f54674d6061faff6e8 100644 --- a/src/wrap.c +++ b/src/wrap.c @@ -1417,6 +1417,10 @@ main (int argc, if (opt_terminal != PV_TERMINAL_TTY) flatpak_bwrap_add_arg (bwrap, "--new-session"); + /* Start with just the root tmpfs (which appears automatically) + * and the standard API filesystems */ + pv_bwrap_add_api_filesystems (bwrap); + if (opt_runtime != NULL && opt_runtime[0] != '\0') { PvRuntimeFlags flags = PV_RUNTIME_FLAGS_NONE; @@ -1463,8 +1467,6 @@ main (int argc, g_assert (!is_flatpak_env); - pv_bwrap_add_api_filesystems (bwrap); - if (!pv_bwrap_bind_usr (bwrap, "/", "/", "/", error)) goto out;