Skip to content

Commit

Permalink
fix(kernel-modules): add sysctl to initramfs to handle modprobe files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Conan-Kudo authored and aafeijoo-suse committed Nov 11, 2022
1 parent 4a5785a commit 33679ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules.d/90kernel-modules/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 33679ff

Please sign in to comment.