[patch] dpkg warning about modules directory not empty while removing kernel packages

Bug #514168 reported by Andrej Rohaŭ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
New
Undecided
Unassigned
Nominated for Lucid by Andrej Rohaŭ

Bug Description

Recent depmod generates an additional modules.builtin.bin depfile based on modules.builtin included in the kernel. It should be removed along with other depfiles in the prerm control script or dpkg does not remove the directory, emits a warning and leaves the cruft behind.

dpkg: warning: while removing linux-image-2.6.32-10-generic, directory '/lib/modules/2.6.32-10-generic' not empty so not removed.

$ ls -la /lib/modules/2.6.32-10-generic
total 20
drwxr-xr-x 2 root root 4096 2010-01-29 09:04 .
drwxr-xr-x 5 root root 4096 2010-01-28 20:55 ..
-rw-r--r-- 1 root root 8871 2010-01-25 10:05 modules.builtin.bin

Package: linux-image-2.6.32-10-generic
Version: 2.6.32-10.14

Revision history for this message
Andrej Rohaŭ (arohau) wrote :
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Andrei,

Thanks for the patch. This however looks to be a duplicate of bug 516584 in which a similar patch has already been applied and released. As a result I'm going to mark this as a duplicate of bug 516584. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.