Skip to contentSkip to conversation

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

PATCH New Amadeusz Żołnowski 1 participant 1 message Apr 1, 2011

lore
Share & tools
lore
#0 lore raw

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

---
 dracut |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
dracut +3 -1
index c6605bb..15a5ee5 100755
@@ -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"
Signature · 1 line
1.7.4.1