Blame 2037-Add-sysctl-to-initramfs-to-handle-modprobe-files.patch

54940a
From 16f1daa9015b4cac6f390c0832f37479bc1377ba Mon Sep 17 00:00:00 2001
54940a
From: Neal Gompa <neal@gompa.dev>
54940a
Date: Sat, 5 Nov 2022 18:28:34 -0400
54940a
Subject: [PATCH] fix(kernel-modules): add sysctl to initramfs to handle
54940a
 modprobe files
54940a
54940a
Users were seeing errors like this:
54940a
54940a
[     2.917246] dracut-pre-udev[717]: sh: line 1: /sbin/sysctl: No such file or directory
54940a
54940a
This was the result of modprobe.d files that needed to call sysctl
54940a
and failing because sysctl wasn't included in the initramfs.
54940a
54940a
This change makes it so that we have the binary included so those
54940a
modprobe configuration files work properly.
54940a
---
54940a
 modules.d/90kernel-modules/module-setup.sh | 1 +
54940a
 1 file changed, 1 insertion(+)
54940a
54940a
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
54940a
index b1fb74020..eb478c7ee 100755
54940a
--- a/modules.d/90kernel-modules/module-setup.sh
54940a
+++ b/modules.d/90kernel-modules/module-setup.sh
54940a
@@ -147,4 +147,5 @@ install() {
54940a
         inst_hook cmdline 01 "$moddir/parse-kernel.sh"
54940a
     fi
54940a
     inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
54940a
+    inst_multiple -o sysctl
54940a
 }