[PATCH 1/2] dracut: create ldconfig aux cache directory on the initrd

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

 



This will allow ldconfig to create its auxiliary cache file in order to
prevent `ldconfig -r' from failing completely when dracut is run as
non-root. Applies to glibc/ldconfig versions released before Nov 22,
2010.
---
 dracut |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dracut b/dracut
index 303d817..5cdd313 100755
--- a/dracut
+++ b/dracut
@@ -350,6 +350,7 @@ unset item
 
 # make sure that library links are correct and up to date
 cp -ar /etc/ld.so.conf* "$initdir"/etc
+mkdir -p "$initdir/var/cache/ldconfig"
 ldconfig -r "$initdir" || [[ $UID != "0" ]] && \
     dinfo "ldconfig might need uid=0 (root) for chroot()"
 
-- 
1.7.3.3

--
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