gen_initramfs: add /sbin/ldconfig to the initramfs

ldconfig will allow us to create ld.so.cache at runtime, if needed
master
Fabio Erculiani 11 years ago
parent 65d6d36332
commit 768333ed63

@ -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

Loading…
Cancel
Save