]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: don't fail on empty /etc/ld.so.conf.d/
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Fri, 1 Apr 2011 22:45:44 +0000 (00:45 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 4 Apr 2011 12:12:25 +0000 (14:12 +0200)
dracut

diff --git a/dracut b/dracut
index c6605bb91522c7176c3e8379188899a6ecda01cd..15a5ee54d9e757f46f1d599593baeb6f2435c615 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -524,7 +524,9 @@ done
 unset item
 
 # make sure that library links are correct and up to date
-dracut_install /etc/ld.so.conf /etc/ld.so.conf.d/*
+for f in /etc/ld.so.conf /etc/ld.so.conf.d/*; do
+    [[ -e $f ]] && dracut_install "$f"
+done
 if ! ldconfig -r "$initdir"; then
     if [[ $UID = 0 ]]; then
         derror "ldconfig exited ungracefully"