]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(kernel-modules): add sysctl to initramfs to handle modprobe files
authorNeal Gompa <neal@gompa.dev>
Sat, 5 Nov 2022 22:28:34 +0000 (18:28 -0400)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Fri, 11 Nov 2022 10:26:13 +0000 (11:26 +0100)
Users were seeing errors like this:

[     2.917246] dracut-pre-udev[717]: sh: line 1: /sbin/sysctl: No such file or directory

This was the result of modprobe.d files that needed to call sysctl
and failing because sysctl wasn't included in the initramfs.

This change makes it so that we have the binary included so those
modprobe configuration files work properly.

modules.d/90kernel-modules/module-setup.sh

index b1fb74020db1f4bb399a122e8f373efe7665bd04..eb478c7ee26dacf5a764e4acb2e2b78caebc3d54 100755 (executable)
@@ -147,4 +147,5 @@ install() {
         inst_hook cmdline 01 "$moddir/parse-kernel.sh"
     fi
     inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
+    inst_multiple -o sysctl
 }