[Bug 636904] Re: /lib/modules directories left behind after purging kernels

Leann Ogasawara leann.ogasawara at canonical.com
Tue Sep 14 00:02:42 UTC 2010


*** This bug is a duplicate of bug 618591 ***
    https://bugs.launchpad.net/bugs/618591

Hi Matt,

This looks to be a duplicate of bug 618591, which should have been
resolved as of 2.6.35-16.22.  I myself just tried purging the
2.6.35-19-generic kernel on a test system here and
/lib/modules/2.6.35-19-generic was removed as expected:

$ cat /proc/version_signature 
Ubuntu 2.6.35-21.30-generic 2.6.35.4

$ ls /lib/modules/2.6.35-19-generic/
initrd             modules.builtin.bin  modules.ieee1394map  modules.pcimap       modules.usbmap
kernel             modules.ccwmap       modules.inputmap     modules.seriomap
modules.alias      modules.dep          modules.isapnpmap    modules.softdep
modules.alias.bin  modules.dep.bin      modules.ofmap        modules.symbols
modules.builtin    modules.devname      modules.order        modules.symbols.bin

$ sudo apt-get purge linux-image-2.6.35-19-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-image-2.6.35-19-generic*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 107MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 620769 files and directories currently installed.)
Removing linux-image-2.6.35-19-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 2.6.35-19-generic /boot/vmlinuz-2.6.35-19-generic
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.35-19-generic /boot/vmlinuz-2.6.35-19-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 2.6.35-19-generic /boot/vmlinuz-2.6.35-19-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-21-generic
Found initrd image: /boot/initrd.img-2.6.35-21-generic
Found linux image: /boot/vmlinuz-2.6.35-20-generic
Found initrd image: /boot/initrd.img-2.6.35-20-generic
...
Found memtest86+ image: /memtest86+.bin
Found memtest86+ multiboot image: /memtest86+_multiboot.bin
done
Purging configuration files for linux-image-2.6.35-19-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.35-19-generic /boot/vmlinuz-2.6.35-19-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 2.6.35-19-generic /boot/vmlinuz-2.6.35-19-generic

$ ls /lib/modules/2.6.35-19-generic
ls: cannot access /lib/modules/2.6.35-19-generic: No such file or directory

** This bug has been marked a duplicate of bug 618591
   Leaves modules.devname and modules.softdep behind in /lib/modules
 * You can subscribe to bug 618591 by following this link: https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/618591/+subscribe

-- 
/lib/modules directories left behind after purging kernels
https://bugs.launchpad.net/bugs/636904
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list