diff --git a/pressure-vessel/runtime.c b/pressure-vessel/runtime.c index 59910dfa9bfa6d8dba40fc93173e146412a4bf9b..78f9e2f98a5e792c91b91f600f0a5713ea283702 100644 --- a/pressure-vessel/runtime.c +++ b/pressure-vessel/runtime.c @@ -2466,6 +2466,8 @@ bind_runtime_base (PvRuntime *self, static const char * const dont_bind[] = { "/etc/asound.conf", + "/etc/ld.so.cache", + "/etc/ld.so.conf", "/etc/localtime", "/etc/machine-id", "/var/cache/ldconfig", @@ -2602,16 +2604,6 @@ bind_runtime_base (PvRuntime *self, if (self->provider != NULL && g_strv_contains (from_provider, dest)) continue; - if (self->mutable_sysroot != NULL) - { - /* If we have a mutable sysroot, we handle ld.so.cache - * separately later, because we want to set it up to be - * possible for the -adverb to overwrite it. */ - if (strcmp (dest, "/etc/ld.so.cache") == 0 - || strcmp (dest, "/etc/ld.so.conf") == 0) - continue; - } - full = g_build_filename (self->runtime_files, bind_mutable[i], member,