Public bug reported:

If you remove a kernel-image package, and its kernel-module packages,
the system will be doing very costly and slow runs of update-initramfs.

The system should be smarter, and detect that the kernel-image is being removed 
as well.
If so, the very laborious step of update-initramfs can be avoided.

For instance, see this output:

[EMAIL PROTECTED]:/boot/grub# dpkg --purge linux-image-2.6.22-14-generic    
linux-image-2.6.24-12-generic   linux-image-2.6.24-15-generic  
linux-image-2.6.24-16-generic   linux-image-2.6.24-17-generic    
linux-ubuntu-modules-2.6.22-14-generic 
linux-restricted-modules-2.6.22-14-generic 
linux-restricted-modules-2.6.24-12-generic   
linux-ubuntu-modules-2.6.24-12-generic linux-ubuntu-modules-2.6.24-15-generic 
linux-restricted-modules-2.6.24-15-generic   
linux-restricted-modules-2.6.24-16-generic   
linux-ubuntu-modules-2.6.24-16-generic  
linux-restricted-modules-2.6.24-17-generic  
linux-ubuntu-modules-2.6.24-17-generic 
(Reading database ... 167369 files and directories currently installed.)
Removing linux-ubuntu-modules-2.6.22-14-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
Purging configuration files for linux-ubuntu-modules-2.6.22-14-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
Removing linux-restricted-modules-2.6.22-14-generic ...
Purging configuration files for linux-restricted-modules-2.6.22-14-generic ...
Removing linux-restricted-modules-2.6.24-12-generic ...
Purging configuration files for linux-restricted-modules-2.6.24-12-generic ...
Removing linux-ubuntu-modules-2.6.24-12-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.24-12-generic
Purging configuration files for linux-ubuntu-modules-2.6.24-12-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.24-12-generic
Removing linux-ubuntu-modules-2.6.24-15-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.24-15-generic
Purging configuration files for linux-ubuntu-modules-2.6.24-15-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.24-15-generic
Removing linux-restricted-modules-2.6.24-15-generic ...
Purging configuration files for linux-restricted-modules-2.6.24-15-generic ...
Removing linux-restricted-modules-2.6.24-16-generic ...
Purging configuration files for linux-restricted-modules-2.6.24-16-generic ...
Removing linux-ubuntu-modules-2.6.24-16-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.24-16-generic
Purging configuration files for linux-ubuntu-modules-2.6.24-16-generic ...
Removing linux-restricted-modules-2.6.24-17-generic ...
Purging configuration files for linux-restricted-modules-2.6.24-17-generic ...
Removing linux-ubuntu-modules-2.6.24-17-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.24-17-generic
Purging configuration files for linux-ubuntu-modules-2.6.24-17-generic ...
Removing linux-image-2.6.22-14-generic ...
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
...

[EMAIL PROTECTED]:/boot/grub# lsb_release -sd
Ubuntu 8.04.1

This bug makes removing kernel images a very slow process.
I had to wait an unacceptably long time for the above command to finish.

** Affects: linux-restricted-modules (Ubuntu)
     Importance: Undecided
         Status: New

-- 
update-initramfs is being run needlessly for a kernel that is being removed.
https://bugs.launchpad.net/bugs/252458
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to