[PATCH] dracut: don't fail on empty /etc/ld.so.conf.d/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 dracut |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dracut b/dracut
index c6605bb..15a5ee5 100755
--- 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"
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux