[Pkg-dkms-maint] Bug#571683: Bug#571683: dkms: should dkms clean up after itself?

David Paleino dapal at debian.org
Tue Mar 2 16:48:42 UTC 2010


Hello,

On Saturday 27 February 2010 08:04:26, Michael Gilbert wrote:
> package: dkms
> version: 2.1.1.2-2
> severity: normal
> 
> when removing a kernel which has previously had dkms modules built
> for it, the user will see the following message:
> 
>   rmdir: failed to remove `/lib/modules/2.6.32-2-amd64': Directory not
>  empty dpkg: warning: while removing linux-image-2.6.32-2-amd64, directory
>  '/lib/modules/2.6.32-2-amd64' not empty so not removed.
> 
> this is because dkms doesn't have any cleanup code to remove the
> modules and files it creates.

I believe this should be handled by kernels' prerm; the only thing we could do 
is providing a wrapper to which the prerm passes the removed version (and 
inside which we issue the proper command for cleaning up DKMS modules).

David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|----
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-dkms-maint/attachments/20100302/9c43cbe8/attachment.pgp>


More information about the Pkg-dkms-maint mailing list