Debian Bug report logs - #571683
dkms: should dkms clean up after itself?

version graph

Package: dkms; Maintainer for dkms is Dynamic Kernel Module System Team <dkms@packages.debian.org>; Source for dkms is src:dkms (PTS, buildd, popcon).

Reported by: Michael Gilbert <michael.s.gilbert@gmail.com>

Date: Sat, 27 Feb 2010 07:03:02 UTC

Severity: normal

Found in version dkms/2.1.1.2-2

Done: Michael Gilbert <michael.s.gilbert@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>:
Bug#571683; Package dkms. (Sat, 27 Feb 2010 07:03:05 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Gilbert <michael.s.gilbert@gmail.com>:
New Bug report received and forwarded. Copy sent to Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>. (Sat, 27 Feb 2010 07:03:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Michael Gilbert <michael.s.gilbert@gmail.com>
To: submit@bugs.debian.org
Subject: dkms: should dkms clean up after itself?
Date: Sat, 27 Feb 2010 02:04:26 -0500
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.  would it be make sense to add some
dkms cleanup code to the kernel's postrm?  if i find the time, i
will look into this (if it sounds reasonable).

mike




Information forwarded to debian-bugs-dist@lists.debian.org, Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>:
Bug#571683; Package dkms. (Tue, 02 Mar 2010 16:51:09 GMT) (full text, mbox, link).


Acknowledgement sent to David Paleino <dapal@debian.org>:
Extra info received and forwarded to list. Copy sent to Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>. (Tue, 02 Mar 2010 16:51:09 GMT) (full text, mbox, link).


Message #10 received at 571683@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: Michael Gilbert <michael.s.gilbert@gmail.com>
Cc: 571683@bugs.debian.org
Subject: Re: [Pkg-dkms-maint] Bug#571683: dkms: should dkms clean up after itself?
Date: Tue, 2 Mar 2010 17:48:42 +0100
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>:
Bug#571683; Package dkms. (Wed, 03 Mar 2010 15:42:19 GMT) (full text, mbox, link).


Acknowledgement sent to Giuseppe Iuculano <giuseppe@iuculano.it>:
Extra info received and forwarded to list. Copy sent to Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>. (Wed, 03 Mar 2010 15:42:19 GMT) (full text, mbox, link).


Message #15 received at 571683@bugs.debian.org (full text, mbox, reply):

From: Giuseppe Iuculano <giuseppe@iuculano.it>
To: Michael Gilbert <michael.s.gilbert@gmail.com>, 571683@bugs.debian.org, DKMS maintainers <pkg-dkms-maint@lists.alioth.debian.org>
Subject: Re: [Pkg-dkms-maint] Bug#571683: dkms: should dkms clean up after itself?
Date: Wed, 03 Mar 2010 16:37:15 +0100
[Message part 1 (text/plain, inline)]
Il 27/02/2010 08:04, Michael Gilbert ha scritto:
> this is because dkms doesn't have any cleanup code to remove the
> modules and files it creates.  would it be make sense to add some
> dkms cleanup code to the kernel's postrm?  if i find the time, i
> will look into this (if it sounds reasonable).
> 

Strange.. we have already /etc/kernel/prerm.d/dkms

Cheers,
Giuseppe.

[signature.asc (application/pgp-signature, attachment)]

Reply sent to Michael Gilbert <michael.s.gilbert@gmail.com>:
You have taken responsibility. (Wed, 03 Mar 2010 17:18:05 GMT) (full text, mbox, link).


Notification sent to Michael Gilbert <michael.s.gilbert@gmail.com>:
Bug acknowledged by developer. (Wed, 03 Mar 2010 17:18:05 GMT) (full text, mbox, link).


Message #20 received at 571683-close@bugs.debian.org (full text, mbox, reply):

From: Michael Gilbert <michael.s.gilbert@gmail.com>
To: 571683-close@bugs.debian.org
Subject: Re: [Pkg-dkms-maint] Bug#571683: dkms: should dkms clean up after itself?
Date: Wed, 3 Mar 2010 12:22:22 -0500
On Wed, 03 Mar 2010 16:37:15 +0100, Giuseppe Iuculano wrote:
> Il 27/02/2010 08:04, Michael Gilbert ha scritto:
> > this is because dkms doesn't have any cleanup code to remove the
> > modules and files it creates.  would it be make sense to add some
> > dkms cleanup code to the kernel's postrm?  if i find the time, i
> > will look into this (if it sounds reasonable).
> > 
> 
> Strange.. we have already /etc/kernel/prerm.d/dkms

hmmm, looks like i didn't look closely enough.  

i just tested this again, and can't reproduce it.  maybe since my
original report was for an older kernel that was installed with an
older dkms the remove scripts weren't called for some reason.

anyway, i'm closing the bug and will reopen if it happens again in the
future.  but it was probably just a temporary issue.

mike




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 01 Apr 2010 07:38:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 06:19:17 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.