linuxrc: create /etc/ld.so.cache if it's not in the initramfs

master
Fabio Erculiani 11 years ago
parent 768333ed63
commit 49c4af162b

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

@ -257,6 +257,8 @@ done
quiet_kmsg
maybe_setup_ld_cache
real_init_init
is_livecd || {

Loading…
Cancel
Save