diff --git a/pressure-vessel/wrap.c b/pressure-vessel/wrap.c index e0ebff04b5baf5b0804880b17a182c134c49e246..a64bd7010089f478ad612625c24d7aede9a16bad 100644 --- a/pressure-vessel/wrap.c +++ b/pressure-vessel/wrap.c @@ -1656,6 +1656,14 @@ main (int argc, g_debug ("Configuring runtime %s...", opt_runtime); + if (is_flatpak_env && opt_copy_runtime_into == NULL) + { + glnx_throw (error, + "Cannot set up a runtime inside Flatpak without " + "making a mutable copy"); + goto out; + } + runtime = pv_runtime_new (opt_runtime, opt_copy_runtime_into, bwrap_executable,