7df327
From 7e401546ec38b3b5858136e93aeeffb93e496556 Mon Sep 17 00:00:00 2001
7df327
From: Lukas Nykryn <lnykryn@redhat.com>
7df327
Date: Tue, 10 Jan 2023 10:43:50 +0100
7df327
Subject: [PATCH] fix(dracut-init): use ldconfig directly instead of
7df327
 DRACUT_LDCONFIG
7df327
7df327
RHEL-only
7df327
Resolves: #2141480
7df327
---
7df327
 dracut-init.sh | 2 +-
7df327
 1 file changed, 1 insertion(+), 1 deletion(-)
7df327
7df327
diff --git a/dracut-init.sh b/dracut-init.sh
7df327
index 5df2e583..b6708288 100644
7df327
--- a/dracut-init.sh
7df327
+++ b/dracut-init.sh
7df327
@@ -448,7 +448,7 @@ build_ld_cache() {
7df327
     for f in "$dracutsysrootdir"/etc/ld.so.conf "$dracutsysrootdir"/etc/ld.so.conf.d/*; do
7df327
         [[ -f $f ]] && inst_simple "${f#$dracutsysrootdir}"
7df327
     done
7df327
-    if ! $DRACUT_LDCONFIG -r "$initdir" -f /etc/ld.so.conf; then
7df327
+    if ! ldconfig -r "$initdir" -f /etc/ld.so.conf; then
7df327
         if [[ $EUID == 0 ]]; then
7df327
             derror "ldconfig exited ungracefully"
7df327
         else
7df327