@ -88,3 +88,13 @@ rundebugshell() {
do_rundebugshell
fi
}
maybe_setup_ld_cache() {
# This calls ldconfig if /etc/ld.so.cache was not
# created at initramfs build time. This may happen
# if the initramfs was generated by an unprivileged user
# since running ldconfig -r requires root privileges.
if [ ! -e "/etc/ld.so.cache" ]; then
ldconfig
@ -257,6 +257,8 @@ done
quiet_kmsg
maybe_setup_ld_cache
real_init_init
is_livecd || {