FS#72046 - libalpm dkms hook/script fails at removing dkms modules on upgrade
Attached to Project:
Arch Linux
Opened by Tamim (shmoo) - Monday, 06 September 2021, 12:21 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 09 November 2021, 10:09 GMT
Opened by Tamim (shmoo) - Monday, 06 September 2021, 12:21 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 09 November 2021, 10:09 GMT
|
Details
Description:
Regression with DKMS 2.8.6 DKMS always fails to remove modules on package upgrade via the libalpm-upgrade hook. Manually uninstalling with `dkms remove --no-depmod nvidia/470.57.02 --all` works as expected but not when invoked from the alpm hook/script. (2/3) Remove DKMS modules ==> Unable to remove module nvidia/470.57.02 for kernel 5.10.62-1-lts: Not found in dkms status output. ==> Unable to remove module nvidia/470.57.02 for kernel 5.13.13-arch1-1: Not found in dkms status output. ==> Unable to remove module nvidia/470.57.02 for kernel 5.13.14-1-clear: Not found in dkms status output. Downgrading DKMS to 2.8.5 fixes the issue Additional info: * dkms version: 2.8.6 Steps to reproduce: 1. build and install some dkms module with makepkg 2. reinstall the same package to trigger the dkms hook |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Tuesday, 09 November 2021, 10:09 GMT
Reason for closing: Fixed
Additional comments about closing: dkms 2.8.6-2
Tuesday, 09 November 2021, 10:09 GMT
Reason for closing: Fixed
Additional comments about closing: dkms 2.8.6-2
[2021-09-05T20:29:01-0500] [ALPM] upgraded dkms (2.8.5-1 -> 2.8.6-1)
Downgrading dkms back to 2.8.5 & modules build again correctly.
I'll look later at the second part of the issue ; modules in added state (e.g when module fail to build for all kernels) are not removed.
==> Unable to remove module rtl8188fu/r60.e2d69b2 for kernel 5.10.69-1-lts: Not found in dkms status output.
The command I used:
sudo pacman -Rns linux-lts{,-headers}
I am running dkms version 2.8.6-2.