]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: do a full ldconfig in the initramfs
authorHarald Hoyer <harald@redhat.com>
Fri, 5 Mar 2010 10:07:10 +0000 (11:07 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 5 Mar 2010 10:07:10 +0000 (11:07 +0100)
dracut

diff --git a/dracut b/dracut
index 7e2b95482c8e3475f8b1992a8217f6f7eeb614c7..91098c489154e373046bcbbf0960b36020baf7b5 100755 (executable)
--- 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"