only run ldconfig on /lib and /usr/lib with -n
authorHarald Hoyer <harald@redhat.com>
Wed, 4 Mar 2009 16:35:14 +0000 (17:35 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 4 Mar 2009 16:35:14 +0000 (17:35 +0100)
This also suppresses error messages about missing ld.so.conf

dracut

diff --git a/dracut b/dracut
index c860b0b..8aef489 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -68,6 +68,6 @@ unset moddir
 }
 
 # make sure that library links are correct and up to date
-ldconfig -r "$initdir"
+ldconfig -n -r "$initdir" /lib /usr/lib
 
 ( cd "$initdir"; find . |cpio -H newc -o |gzip -9 > "$outfile"; )