-
Notifications
You must be signed in to change notification settings - Fork 163
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
Makefile: fix extension of kernel-install plugin #335
Conversation
Thanks for the PR. How did you notice the issue? While I agree we should follow the documentation, I'm weary about regressions. Can you check and provide some references that this won't cause (m)any issues and/or that distros are already renaming the file. For example: Arch does not install the files, as it can be seen from the package contents |
Installing a new kernel did not automatically trigger the rebuilding of dkms modules. Of course after rebooting the systemd service still takes care of this, so not a huge problem.
In fact, AFAIK it is pretty uncommon to use the kernel-install command (which should then call this plugin) except on source based distributions like Gentoo or when installing a kernel manually ( Worst case scenario you end up running dkms twice, the second time won't do anything since dkms will find that the modules are already installed and skip.
By the way, technically this should really be
|
Looking at Fedora it has an extra install snippet although the commit message is bit short.
@scaronni you seem to be the author, do you recall what inspired that change? Do you think it's safe for us to step even further and use @anbe42 can you have a quick check this won't break any Debian tooling? At a glance I could not spot any. |
Sorry can't really remember, it's 3 years and 4 months since that was applied. If I'm not mistaken somone pointed out in a bug that was needed to be installed to make it work. I inherited an abandoned DKMS package in Fedora/EPEL and as well an almost abandoned repository in Github around the same time, too much has passed since. |
I don't think this file (although we ship |
Alright I changed the commit to install the plugin as is done in Fedora ( |
- Plugins need the .install extension, otherwise they are ignored. 40 ensures that dkms is run before dracut, useful if dkms modules are to be included in the initrd. Fedora already installs the plugin with this name. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
It's very unusual to have
and can be customized via |
Indeed, which is why I unintentionally misled Andrew for a moment. Thank you for the MR and patience Andrew 🙇 |
🥳 It was a slightly mutually confusing ride, but we got there in the end. Thanks for merging! |
According to the kernel-install manual plugins need to have the
.install
extension, otherwise they are ignored: