Add script for newer Fedora to run existing postinst/prerm scripts #118
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pursuant to Fedora bug https://bugzilla.redhat.com/show_bug.cgi?id=1753044, and openzfs issue openzfs/zfs#9868.
The issue is that there is surprising behavior to users expecting that ZFS (and other DKMS-built modules in Fedora) are not auto-built for new kernels by the out-of-the-box configuration of DKMS. This has nothing to do with ZFS per se; it is a change in how Fedora invokes kernel installation hooks. DKMS in its present state depends on an older behavior.
Fedora has moved away from effectively requiring the grubby package to run the postinst/prerm scripts in newer Fedoras (30+). However, the grubby package is still available and usable.
My proposal is to add a new script in the new /etc/kernel/install.d directory, which selectively calls either the existing postinst or prerm script, which would stay in their current locations. F30+ DKMS packages in Fedora can add the new install.d script. My hope is that the other OS's that DKMS supports can simply ignore the new script and not have to make changes.
This is what I suspect to be the least disruptive way of handling the problem. If this PR is accepted I intend to work with the Feodra packaging of DKMS to bring it to present and future supported Fedora releases. If I am wrong in any of my assumptions, I'm happy to refine my submission.