New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(kernel-modules): Add sysctl to initramfs to handle modprobe files #2037
Conversation
945b153
to
d961f89
Compare
We already have a systemd sysctl module so adding this to dracut-systemd module should not be necessary. What usecase does this solve which is not solved by including that module? |
The
|
If this gets added it belongs in the systemd sysctl module not in the dracut systemd module. |
Obviously I could add it there and it'd coincidentally work, but the |
Arguably the modules that require sysctl be invoked in the firstplace are broken and those should be fixed so there is high probably this gets nacked |
While I agree with this philosophically, the practical reality is that systemd-sysctl is not universally adopted. To try to dictate that every other distribution and creator of modprobe drop-in config files needs to use it seems like an uphill battle. |
How do you all feel about adding sysctl to the kernel-modules dracut module as an optional dependency ? |
We make the assumption that distribution that adopted systemd did so wholesale trying to support ca 250 systemd based distribution that randomly decided which component of systemd it uses is madness. |
That's an ack from me. |
I'm fine with that too, that's where I initially thought to do it, but when I did the search for what loaded the files, this module came up instead. |
d961f89
to
aaa48ae
Compare
@LaszloGombos I just moved it over to the |
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.
aaa48ae
to
16f1daa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Perhaps once this PR lands, we no longer need this code in the test - 4a5785a.. |
This pull request changes...
Changes
dracut-systemd
module now will incorporatesysctl
into initramfs so that modprobe configuration files that call sysctl will function properly.Checklist