From: Harald Hoyer Date: Fri, 5 Mar 2010 10:07:10 +0000 (+0100) Subject: dracut: do a full ldconfig in the initramfs X-Git-Tag: 005~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70aaa95d52eb7efdd3fec175839356663cc01d83;p=thirdparty%2Fdracut.git dracut: do a full ldconfig in the initramfs --- diff --git a/dracut b/dracut index 7e2b95482..91098c489 100755 --- a/dracut +++ b/dracut @@ -259,7 +259,8 @@ if [[ -d $initdir/lib/modules/$kernel ]]; then fi # make sure that library links are correct and up to date -ldconfig -n -r "$initdir" /lib* /usr/lib* +cp -ar /etc/ld.so.conf* "$initdir"/etc +ldconfig -r "$initdir" || [[ $(id -u) != "0" ]] && dinfo "ldconfig might need uid=0 (root) for chroot()" if [[ $include_src && $include_target ]]; then mkdir -p "$initdir$include_target"