28 lines
774 B
Diff
28 lines
774 B
Diff
From 76353076c081ac51647214c5ce910aba027b25db Mon Sep 17 00:00:00 2001
|
|
From: =?utf8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@aidecoe.name>
|
|
Date: Sat, 2 Apr 2011 00:45:44 +0200
|
|
Subject: [PATCH] dracut: don't fail on empty /etc/ld.so.conf.d/
|
|
|
|
---
|
|
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.4
|
|
|