Skip to content
Snippets Groups Projects
Commit 61d92c0d authored by Simon McVittie's avatar Simon McVittie
Browse files

pv-runtime: Try to create /sbin/ldconfig.real if using host glibc


In Ubuntu and older versions of Debian, /sbin/ldconfig is a shell script
that wraps /sbin/ldconfig.real. To make it possible to run /sbin/ldconfig,
we have to map /sbin/ldconfig.real into the container too.

Resolves: T29764
Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent d3ae9433
No related branches found
No related tags found
1 merge request!358pressure-vessel: Fix regression regenerating ld.so.cache on Ubuntu and older Debian
Pipeline #16674 passed
...@@ -4454,6 +4454,10 @@ pv_runtime_finish_libc_family (PvRuntime *self, ...@@ -4454,6 +4454,10 @@ pv_runtime_finish_libc_family (PvRuntime *self,
{ "getent" }, { "getent" },
{ "iconv" }, { "iconv" },
{ "ldconfig", .priority = ESSENTIAL, .target_path = "/sbin/ldconfig" }, { "ldconfig", .priority = ESSENTIAL, .target_path = "/sbin/ldconfig" },
/* In Ubuntu and old Debian releases (Debian 8 or older), /sbin/ldconfig
* is a shell script wrapper around the real binary /sbin/ldconfig.real,
* working around lack of dpkg trigger support in old library packages. */
{ "ldconfig.real", .target_path = "/sbin/ldconfig.real" },
{ "ldd", .priority = IMPORTANT }, { "ldd", .priority = IMPORTANT },
{ "locale", .priority = IMPORTANT }, { "locale", .priority = IMPORTANT },
{ "localedef", .priority = IMPORTANT }, { "localedef", .priority = IMPORTANT },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment