Browse Source

[initramfs] Enhanced output format to run `ldconfig` if etc/ld.so.conf is present

karasz/new-early
Alejandro Mery 16 years ago
parent
commit
481d90b695
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      target/share/initramfs/build.sh

+ 7
- 0
target/share/initramfs/build.sh

@ -93,6 +93,13 @@ echo_status "Checking for broken symlinks ..."
fi
done
# ldconfig
#
if [ -s "$rootfs/etc/ld.so.conf" ]; then
echo_status "Running ldconfig ..."
ldconfig -r "$rootfs"
fi
# sanity checks
#
[ -x "$rootfs/init" ] || echo_warning "This image is missing an /init file, it wont run."

Loading…
Cancel
Save