diff --git a/0101.patch b/0101.patch new file mode 100644 index 0000000..2567950 --- /dev/null +++ b/0101.patch @@ -0,0 +1,38 @@ +From f09dbb1a57b79e0a9dd4f02134b048ec6326ff78 Mon Sep 17 00:00:00 2001 +From: Pavel Valena +Date: Sun, 17 Aug 2025 03:47:43 +0200 +Subject: [PATCH] fix(systemd): partial backport of + +Author: Jo Zzsi +Date: Wed Apr 23 19:21:59 2025 -0400 + + fix: load more kernel modules in sloppy hostonly mode + + When hostonly_mode is set to "sloppy" instmods consults the host for currently loaded kernel modules and + refuses to copy the Linux kernel module into the generated initramfs unless the kernel + module is already loaded on the host. + + Let's set hostonly explicitly to a better default before calling instmods. + + For compatibility, we should not change the default in the instmods function itself. + +(cherry picked from commit de862885ec55bb19bfa3e3f1afd27577b7c5e309) + +Resolves: RHEL-94663 +--- + modules.d/00systemd/module-setup.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh +index 658640ac..6f07f329 100755 +--- a/modules.d/00systemd/module-setup.sh ++++ b/modules.d/00systemd/module-setup.sh +@@ -18,7 +18,7 @@ depends() { + + installkernel() { + hostonly='' instmods autofs4 ipv6 algif_hash hmac sha256 sg +- instmods -s efivarfs overlay ++ hostonly=$(optional_hostonly) instmods -s efivarfs overlay + } + + # called by dracut diff --git a/dracut.spec b/dracut.spec index b9482c1..1865b4e 100644 --- a/dracut.spec +++ b/dracut.spec @@ -5,7 +5,7 @@ # strip the automatically generated dep here and instead co-own the # directory. %global __requires_exclude pkg-config -%define dist_free_release 101.git20250808 +%define dist_free_release 102.git20250818 Name: dracut Version: 057 @@ -127,6 +127,7 @@ Patch97: 0097.patch Patch98: 0098.patch Patch99: 0099.patch Patch100: 0100.patch +Patch101: 0101.patch Source1: https://www.gnu.org/licenses/lgpl-2.1.txt @@ -583,6 +584,9 @@ echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/ %{_prefix}/lib/kernel/install.d/51-dracut-rescue.install %changelog +* Mon Aug 18 2025 Pavel Valena - 057-102.git20250818 +- fix(systemd): partial backport of + * Fri Aug 08 2025 Pavel Valena - 057-101.git20250808 - fix(systemd): add missing modprobe@.service - fix: let check_vol_slaves_all return 1 when checks on all