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

Details

Provenance
AllKind <allkind@fastest.cc>Authored on Nov 7 2023, 7:27 PM
Tony Hutter <hutter2@llnl.gov>Committed on Nov 16 2023, 10:23 PM
Parents
rG1c7048357d91: Add all read-only compatible zpool features to grub2 compatibility
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGe534ba5ce7de: Fix dkms installation of deb packages created with Alien. (authored by AllKind <allkind@fastest.cc>).Nov 16 2023, 10:23 PM