Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
playground
>
dracut
> 0041-dracut-do-a-full-ldconfig-in-the-initramfs.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0041-dracut-do-a-full-ldconfig-in-the-initramfs.patch of Package dracut
From d2f762de55eeff1a7cfc82a8f2e51c9655d40155 Mon Sep 17 00:00:00 2001 From: Harald Hoyer <harald@redhat.com> Date: Fri, 5 Mar 2010 11:07:10 +0100 Subject: [PATCH] dracut: do a full ldconfig in the initramfs --- dracut | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dracut b/dracut index 7e2b954..91098c4 100755 --- a/dracut +++ b/dracut @@ -259,7 +259,8 @@ if [[ -d $initdir/lib/modules/$kernel ]]; then fi # make sure that library links are correct and up to date -ldconfig -n -r "$initdir" /lib* /usr/lib* +cp -ar /etc/ld.so.conf* "$initdir"/etc +ldconfig -r "$initdir" || [[ $(id -u) != "0" ]] && dinfo "ldconfig might need uid=0 (root) for chroot()" if [[ $include_src && $include_target ]]; then mkdir -p "$initdir$include_target" -- 1.8.3.1