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