From 1254925f1eb2ae2bf134d5190a96e4e7b64aacb9 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 11 Apr 2011 14:38:31 +0200 Subject: [PATCH] dracut: do not install ld.so.conf* for kernel-only --- dracut | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/dracut b/dracut index 15a5ee5..92fb40a 100755 --- a/dracut +++ b/dracut @@ -523,15 +523,18 @@ while pop install_items items; do done unset item -# make sure that library links are correct and up to date -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" - else - derror "ldconfig might need uid=0 (root) for chroot()" + +if [[ $kernel_only != yes ]]; then + # make sure that library links are correct and up to date + 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" + else + derror "ldconfig might need uid=0 (root) for chroot()" + fi fi fi -- 2.7.4