HomeFreeBSD

Fix dkms installation of deb packages created with Alien.

Description

Fix dkms installation of deb packages created with Alien.

Alien does not honour the %posttrans hook.
So move the dkms uninstall/install scripts to the
%pre/%post hooks in case of package install/upgrade.
In case of package removal, handle that in %preun.
Add removal of all old dkms modules.
Add checking for broken 'dkms status'. Handle that as
good as possible and warn the user about it.
Also add more verbose messages about what we are doing.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mart Frauenlob <AllKind@fastest.cc>
Closes #15415
(cherry picked from commit 9ce567c6fffd39e4bdf0cfe93f04a008de876b48)

Details

Provenance
AllKind <allkind@fastest.cc>Authored on Nov 7 2023, 7:27 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 5 2023, 7:04 PM
Parents
rGd99134be8375: Tag zfs-2.1.14
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGd96360b7f2e0: Fix dkms installation of deb packages created with Alien. (authored by AllKind <allkind@fastest.cc>).Dec 5 2023, 7:04 PM