dracut/backport-fix-dracut-init.sh-correct-dracut-install-source-path.patch
hongjinghao 9d9fb131b3 backport patchs from upstream
(cherry picked from commit 74c55dc789a3aacb444c42ab40cd308bd213f5e3)
2024-02-22 16:48:54 +08:00

30 lines
1.1 KiB
Diff

From 72b700e3cb8a0d74033e6e20b2435d9254b36efe Mon Sep 17 00:00:00 2001
From: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
Date: Mon, 1 Aug 2022 09:47:51 +0200
Subject: [PATCH] fix(dracut-init.sh): correct dracut-install source path
Reference:https://github.com/dracutdevs/dracut/commit/72b700e3cb8a0d74033e6e20b2435d9254b36efe
Conflict:NA
---
dracut-init.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dracut-init.sh b/dracut-init.sh
index 9dfa0990..41830e1a 100644
--- a/dracut-init.sh
+++ b/dracut-init.sh
@@ -180,8 +180,8 @@ fi
if ! [[ $DRACUT_INSTALL ]] && [[ -x $dracutbasedir/dracut-install ]]; then
DRACUT_INSTALL=$dracutbasedir/dracut-install
-elif ! [[ $DRACUT_INSTALL ]] && [[ -x $dracutbasedir/install/dracut-install ]]; then
- DRACUT_INSTALL=$dracutbasedir/install/dracut-install
+elif ! [[ $DRACUT_INSTALL ]] && [[ -x $dracutbasedir/src/install/dracut-install ]]; then
+ DRACUT_INSTALL=$dracutbasedir/src/install/dracut-install
fi
# Test if dracut-install is a standalone executable with no options.
--
2.23.0