From 768333ed63843979d6bcfc9e21cde89ba786d56b Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 26 Dec 2013 10:54:10 +0100 Subject: [PATCH] gen_initramfs: add /sbin/ldconfig to the initramfs ldconfig will allow us to create ld.so.cache at runtime, if needed --- gen_initramfs.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 8dd2414..658f868 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -648,12 +648,18 @@ append_udev() { } append_ld_so_conf() { - print_info 1 'ld.so.conf: adding /etc/ld.so.conf{.d/*,}...' - local tmp_dir="${TEMP}/initramfs-ld-temp" rm -rf "${tmp_dir}" mkdir -p "${tmp_dir}" + print_info 1 'ldconfig: adding /sbin/ldconfig...' + + # Add ldconfig to the initramfs so that we can + # run ldconfig at runtime if needed. + copy_binaries "${tmp_dir}" "/sbin/ldconfig" + + print_info 1 'ld.so.conf: adding /etc/ld.so.conf{.d/*,}...' + local f= f_dir= for f in /etc/ld.so.conf /etc/ld.so.conf.d/*; do if [ -f "${f}" ]; then