|
|
4caed9 |
From a7eaedb1679d871c213753fad872d65b23070240 Mon Sep 17 00:00:00 2001
|
|
|
4caed9 |
From: Pavel Valena <pvalena@redhat.com>
|
|
|
4caed9 |
Date: Thu, 19 Jan 2023 16:04:19 +0100
|
|
|
4caed9 |
Subject: [PATCH] fix(dracut-init.sh): backport common paths
|
|
|
4caed9 |
|
|
|
4caed9 |
While backporting, some paths might be expected to be defined.
|
|
|
4caed9 |
Backporting these paths as a preemptive measure (there's no test)
|
|
|
4caed9 |
to avoid possible regressions when they're undefined.
|
|
|
4caed9 |
|
|
|
4caed9 |
(Cherry-picked from a01204202b3014c0c761c93bc7de8bf35e6dc5ef
|
|
|
4caed9 |
and 18d36fabf5ab20404e63ae56f166a5a53a874ba9)
|
|
|
4caed9 |
|
|
|
4caed9 |
RHEL-only
|
|
|
4caed9 |
Resolves: #2141480
|
|
|
4caed9 |
---
|
|
|
4caed9 |
dracut-init.sh | 4 ++++
|
|
|
4caed9 |
dracut.sh | 2 ++
|
|
|
4caed9 |
2 files changed, 6 insertions(+)
|
|
|
4caed9 |
|
|
|
4caed9 |
diff --git a/dracut-init.sh b/dracut-init.sh
|
|
|
4caed9 |
index b6708288..50f9cf98 100644
|
|
|
4caed9 |
--- a/dracut-init.sh
|
|
|
4caed9 |
+++ b/dracut-init.sh
|
|
|
4caed9 |
@@ -79,6 +79,10 @@ export srcmods
|
|
|
4caed9 |
export hookdirs
|
|
|
4caed9 |
}
|
|
|
4caed9 |
|
|
|
4caed9 |
+DRACUT_LDD=${DRACUT_LDD:-ldd}
|
|
|
4caed9 |
+DRACUT_TESTBIN=${DRACUT_TESTBIN:-/bin/sh}
|
|
|
4caed9 |
+DRACUT_LDCONFIG=${DRACUT_LDCONFIG:-ldconfig}
|
|
|
4caed9 |
+
|
|
|
4caed9 |
. $dracutbasedir/dracut-functions.sh
|
|
|
4caed9 |
|
|
|
4caed9 |
# Detect lib paths
|
|
|
4caed9 |
diff --git a/dracut.sh b/dracut.sh
|
|
|
4caed9 |
index 57f51e91..f58559e8 100755
|
|
|
4caed9 |
--- a/dracut.sh
|
|
|
4caed9 |
+++ b/dracut.sh
|
|
|
4caed9 |
@@ -730,6 +730,8 @@ done
|
|
|
4caed9 |
export PATH="${NPATH#:}"
|
|
|
4caed9 |
unset NPATH
|
|
|
4caed9 |
|
|
|
4caed9 |
+export SYSTEMCTL=${SYSTEMCTL:-systemctl}
|
|
|
4caed9 |
+
|
|
|
4caed9 |
# these options add to the stuff in the config file
|
|
|
4caed9 |
(( ${#add_dracutmodules_l[@]} )) && add_dracutmodules+=" ${add_dracutmodules_l[@]} "
|
|
|
4caed9 |
(( ${#force_add_dracutmodules_l[@]} )) && force_add_dracutmodules+=" ${force_add_dracutmodules_l[@]} "
|