removal of linux-image package leaves /lib/modules/`uname -r`

Bug #524180 reported by Scott Moser
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-ec2 (Ubuntu)
Fix Released
Medium
Andy Whitcroft
Karmic
Won't Fix
Medium
Leann Ogasawara

Bug Description

SRU Justification/Impact (Karmic):
Purge fails to completely remove files from /lib/modules/`uname -r`. Subsequently a warning is displayed and /lib/modules/`uname -r` is not completely removed. A similar fix to resolve this issue was applied to the master branch via commit 8b453930465c15f490ea44c2987b0a1bfe71ed66. Apply the same fix to the Karmic ec2 branch.

TEST CASE (Karmic):
install linux-image-2.6.31-30x.y and verify /lib/modules/2.6.31-30x-ec2 exists
sudo apt-get remove --purge linux-image-2.6.31-30x.y and verify /lib/modules/2.6.31-30x-ec2 has been completely removed

It's my understanding the issue currently exists in lucid but will be soon a non-issue with recent changes which pull in common files (like control-scripts/prerm) into the debian dir.

=====

removing the linux-image-2.6.32-302-ec2 package leaves the module dir around.

$ sudo apt-get remove --purge linux-image-2.6.32-302-ec2
...
Purging configuration files for linux-image-2.6.32-302-ec2 ...
dpkg: warning: while removing linux-image-2.6.32-302-ec2, directory '/lib/modules/2.6.32-302-ec2' not empty so not removed.

$ ls -l /lib/modules/2.6.32-302-ec2
total 776
-rw-r--r-- 1 root root 360846 2010-02-18 01:33 modules.alias.bin
-rw-r--r-- 1 root root 218492 2010-02-18 01:33 modules.dep.bin
-rw-r--r-- 1 root root 195836 2010-02-18 01:33 modules.symbols.bin

the files above were created (I belive) by the installation of the package, they should be correctly removed on removal.

ProblemType: Bug
Architecture: i386
Date: Fri Feb 19 01:21:19 2010
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-302-ec2 2.6.32-302.6
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: User Name 2.6.32-302.6-ec2
SourcePackage: linux-ec2
Uname: Linux 2.6.32-302-ec2 i686

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Looks like a similar patch that was applied to debian.master/control-scripts/prerm needs to be applied to debian.ec2/control-scripts/prerm. Below is the patch that was applied to debian.master:

commit 8b453930465c15f490ea44c2987b0a1bfe71ed66
Author: Bryan Wu <email address hidden>
Date: Wed Mar 25 17:31:26 2009 +0800

    UBUNTU: Add 3 missing files to prerm remove file list

Changed in linux-ec2 (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Andy Whitcroft (apw)
Changed in linux-ec2 (Ubuntu Karmic):
status: New → Triaged
importance: Undecided → Medium
Changed in linux-ec2 (Ubuntu):
assignee: nobody → Andy Whitcroft (apw)
Changed in linux-ec2 (Ubuntu Karmic):
assignee: nobody → Leann Ogasawara (leannogasawara)
status: Triaged → In Progress
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

approved nomination for Karmic.

-JFo

description: updated
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :
Andy Whitcroft (apw)
Changed in linux-ec2 (Ubuntu):
status: Triaged → Fix Released
Stefan Bader (smb)
Changed in linux-ec2 (Ubuntu Karmic):
status: In Progress → Fix Committed
Rolf Leggewie (r0lf)
Changed in linux-ec2 (Ubuntu Karmic):
status: Fix Committed → Won't Fix
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.