Purge leaves behind some files in /lib/modules

Bug #345623 reported by Matt Zimmerman
18
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Bryan Wu

Bug Description

While purging some old kernels, I noticed warnings from dpkg that it was not removing /lib/modules/xxx.

Here's what was left behind:

perseus:[/lib/modules] ls 2.6.28-{8,10}-generic
2.6.28-10-generic:
modules.alias.bin modules.dep.bin modules.symbols.bin

2.6.28-8-generic:
modules.alias.bin modules.dep.bin modules.symbols.bin

Removing the package should clean up all of the files associated with that version of the kernel.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
MachineType: LENOVO 6465CTO
Package: linux-image-2.6.28-11-generic 2.6.28-11.35
ProcCmdLine: root=UUID=305dde78-d20a-4248-aaf4-09447b7c5791 ro quiet splash
ProcEnviron:
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.28-11.35-generic
SourcePackage: linux

Revision history for this message
Matt Zimmerman (mdz) wrote :
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Bryan Wu (cooloney)
Changed in linux:
assignee: nobody → cooloney
Revision history for this message
Andy Whitcroft (apw) wrote :

@cooloney -- seems that we have another report of this, which I have dup'd against this original. Also I hear rumours its being talked about in the forums. Sounds like its annoying people.

Changed in linux:
status: Triaged → In Progress
Revision history for this message
Loïc Minier (lool) wrote :

To reiterate the fix I proposed in the dup-ed bug:
"""The remaining files are:
% ls /lib/modules/2.6.28-10-generic
modules.alias.bin modules.dep.bin modules.symbols.bin

I believe debian/control-scripts/prerm should be updated to list these in @files_to_remove."""

Revision history for this message
Bryan Wu (cooloney) wrote :

I already added these 3 fils to the remove file list of debian/control-scripts/prerm. And test it on my Jaunty amd64 machine.

This bug should be fixed.

-Bryan

Changed in linux:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.5 KiB)

This bug was fixed in the package linux - 2.6.28-11.38

---------------
linux (2.6.28-11.38) jaunty; urgency=low

  [ Brad Figg ]

  * When AppArmor is configured, securityfs must be as well.
    - LP: #344370
  * ARM: Enable AA with SECURITYFS for imx51
    - LP: #344370

  [ Bryan Wu ]

  * Add 3 missing files to prerm remove file list
    - LP: #345623

  [ Daniel T Chen ]

  * SAUCE: (drop after 2.6.28) Don't trust hw-ptr blindly
    - LP: #330814
  * SAUCE: (drop after 2.6.28) Apply further pcm_lib updates for hw_ptr
    - LP: #330814

  [ Ike Panhc ]

  * Copy header files for various kernel media driver
    - LP: #322732

  [ Tim Gardner ]

  * Revert "Fix the VFP handling on the Feroceon CPU"
    Only applied to mv78xx0 ARM flavour.
  * Enabled drivers/staging/at76_usb
    - LP: #152626

  [ <email address hidden> ]

  * SAUCE: ipw2200: Enable LED by default
    - LP: #21367
  * SAUCE: wistron_btns: support Prestigio Wifi RF kill button over suspend
    - LP: #346586

  [ Upstream Kernel Changes ]

  * Build fix for __early_pfn_to_nid() undefined link error
  * Fix misreporting of #cores as #hyperthreads for Q9550
  * eventfd: remove fput() call from possible IRQ context
  * S390: __div64_31 broken for CONFIG_MARCH_G5
  * ALSA: Fix vunmap and free order in snd_free_sgbuf_pages()
  * ALSA: mixart, fix lock imbalance
  * ALSA: pcm_oss, fix locking typo
  * ALSA: hda - Fix DMA mask for ATI controllers
  * ALSA: hda - Workaround for buggy DMA position on ATI controllers
  * ALSA: opl3sa2 - Fix NULL dereference when suspending snd_opl3sa2
  * nfsd: nfsd should drop CAP_MKNOD for non-root
  * NFSD: provide encode routine for OP_OPENATTR
  * dm ioctl: validate name length when renaming
  * dm io: respect BIO_MAX_PAGES limit
  * dm crypt: fix kcryptd_async_done parameter
  * dm crypt: wait for endio to complete before destruction
  * ata_piix: add workaround for Samsung DB-P70
  * V4L/DVB (10218): cx23885: Fix Oops for mixed install of analog and
    digital only cards
  * thinkpad-acpi: fix module autoloading for older models
  * Add '-fwrapv' to gcc CFLAGS
  * Move cc-option to below arch-specific setup
  * USB: storage: Unusual USB device Prolific 2507 variation added
  * USB: Add Vendor/Product ID for new CDMA U727 to option driver
  * USB: option.c: add ZTE 622 modem device
  * USB: Add device id for Option GTM380 to option driver
  * USB: Option: let cdc-acm handle Sony Ericsson F3507g / Dell 5530
  * USB: Updated unusual-devs entry for USB mass storage on Nokia 6233
  * USB: unusual_devs: Add support for GI 0431 SD-Card interface
  * USB: serial: add FTDI USB/Serial converter devices
  * USB: serial: ftdi: enable UART detection on gnICE JTAG adaptors
    blacklist interface0
  * USB: serial: new cp2101 device id
  * USB: usbtmc: fix stupid bug in open()
  * USB: usbtmc: add protocol 1 support
  * USB: usbfs: keep async URBs until the device file is closed
  * USB: EHCI: expedite unlinks when the root hub is suspended
  * USB: EHCI: Fix isochronous URB leak
  * powerpc: Remove extra semicolon in fsl_soc.c
  * menu: fix embedded menu snafu
  * Linux 2.6.28.9
  * Add '-fwrapv' to gcc CFLAGS
    - LP: #348015
  * Move cc-option to below arch-s...

Read more...

Changed in linux:
status: Fix Committed → Fix Released
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

is it possible that the patch got dropped somewhere on the way to karmic?
i'm looking at my /var/lib/dpkg/info/linux-image-2.6.31-9-generic.prerm and I don't see these three files:

sub success () {
  my @files_to_remove = qw{
    modules.dep modules.isapnpmap modules.pcimap
    modules.usbmap modules.parportmap
    modules.generic_string modules.ieee1394map
    modules.ieee1394map modules.pnpbiosmap
    modules.alias modules.ccwmap modules.inputmap
    modules.symbols modules.ofmap modules.seriomap
  };

  foreach my $extra_file (@files_to_remove) {
    if (-f "/lib/modules/$version/$extra_file") {
      unlink "/lib/modules/$version/$extra_file";
    }
  }
  exit 0;
}

Changed in linux (Ubuntu):
status: Fix Released → New
Revision history for this message
Loïc Minier (lool) wrote :

The changes were not ever merged in the karmic tree; see bug #415832. Kernel team told me that they have a tag in the jaunty tree for changes which they still need to merge into karmic.

Closing this bug again, please use the other one.

Changed in linux (Ubuntu):
status: New → Fix Released
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

Ok, thank you

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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