From: Neal Gompa Date: Sat, 5 Nov 2022 22:28:34 +0000 (-0400) Subject: fix(kernel-modules): add sysctl to initramfs to handle modprobe files X-Git-Tag: 058~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33679fff5deb733f9dfe8d005066ac98e107c083;p=thirdparty%2Fdracut.git fix(kernel-modules): add sysctl to initramfs to handle modprobe files 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. --- diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh index b1fb74020..eb478c7ee 100755 --- a/modules.d/90kernel-modules/module-setup.sh +++ b/modules.d/90kernel-modules/module-setup.sh @@ -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 }