2024-10-31 20:03:00 +00:00
|
|
|
From f26573ec709c7703863e8affdec990b100c25598 Mon Sep 17 00:00:00 2001
|
2024-08-28 16:36:00 +00:00
|
|
|
From: Philipp Rudo <prudo@redhat.com>
|
|
|
|
Date: Mon, 26 Aug 2024 15:58:54 +0200
|
2024-10-31 20:03:00 +00:00
|
|
|
Subject: [PATCH 27/32] revert(dracut-init.sh): add module to mods_to_load
|
2024-08-28 16:36:00 +00:00
|
|
|
before checking dependencies
|
|
|
|
|
|
|
|
Commit d0f8fde5 ("fix(dracut-init.sh): add module to mods_to_load before
|
|
|
|
checking dependencies") introduced a regression. When dracut is in
|
|
|
|
"auto" mode, i.e. '--modules auto' or no --modules is provided, the
|
|
|
|
expected behavior is that all modules that return 0 in their check()
|
|
|
|
function are included. Except for the ones where the dependencies cannot
|
|
|
|
be installed. The commit however, caused those modules to be included
|
|
|
|
without their dependencies. Thus revert the commit.
|
|
|
|
|
|
|
|
This reverts commit d0f8fde5668cfd7fda1d15824e268b4949b4fd04.
|
|
|
|
|
|
|
|
Reported-by: Jo Zzsi <jozzsicsataban@gmail.com>
|
|
|
|
Signed-off-by: Philipp Rudo <prudo@redhat.com>
|
|
|
|
|
|
|
|
(cherry picked from commit bddbb11bbbfc405317a6fbd53bb189b575d46da2)
|
|
|
|
|
|
|
|
Resolves: RHEL-43460
|
|
|
|
---
|
|
|
|
dracut-init.sh | 12 ++++++------
|
|
|
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/dracut-init.sh b/dracut-init.sh
|
2024-10-31 20:03:00 +00:00
|
|
|
index 3917bb0d..644825c9 100755
|
2024-08-28 16:36:00 +00:00
|
|
|
--- a/dracut-init.sh
|
|
|
|
+++ b/dracut-init.sh
|
2024-10-31 20:03:00 +00:00
|
|
|
@@ -924,9 +924,6 @@ check_mount() {
|
2024-08-28 16:36:00 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
- [[ " $mods_to_load " == *\ $_mod\ * ]] \
|
|
|
|
- || mods_to_load+=" $_mod "
|
|
|
|
-
|
|
|
|
for _moddep in $(module_depends "$_mod" "$_moddir"); do
|
|
|
|
# handle deps as if they were manually added
|
|
|
|
[[ " $dracutmodules " == *\ $_mod\ * ]] \
|
2024-10-31 20:03:00 +00:00
|
|
|
@@ -945,6 +942,9 @@ check_mount() {
|
2024-08-28 16:36:00 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
+ [[ " $mods_to_load " == *\ $_mod\ * ]] \
|
|
|
|
+ || mods_to_load+=" $_mod "
|
|
|
|
+
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2024-10-31 20:03:00 +00:00
|
|
|
@@ -1001,9 +1001,6 @@ check_module() {
|
2024-08-28 16:36:00 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
- [[ " $mods_to_load " == *\ $_mod\ * ]] \
|
|
|
|
- || mods_to_load+=" $_mod "
|
|
|
|
-
|
|
|
|
for _moddep in $(module_depends "$_mod" "$_moddir"); do
|
|
|
|
# handle deps as if they were manually added
|
|
|
|
[[ " $dracutmodules " == *\ $_mod\ * ]] \
|
2024-10-31 20:03:00 +00:00
|
|
|
@@ -1022,6 +1019,9 @@ check_module() {
|
2024-08-28 16:36:00 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
+ [[ " $mods_to_load " == *\ $_mod\ * ]] \
|
|
|
|
+ || mods_to_load+=" $_mod "
|
|
|
|
+
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
|
|
|
2.42.0
|
|
|
|
|