Please don't regenerate the initramfs when removal/purge of linux-image-`uname -r` is pending

Bug #152548 reported by Peter Klotz
4
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Wishlist
Unassigned

Bug Description

Binary package hint: linux-image

I used Synaptics Package manager to perform a complete removal of "linux-image-2.6.22-9", "linux-image-2.6.22-10" and "linux-image-2.6.22-11" in order to free up space in /boot.

When watching with ls I saw the uninstall procedure first creating a new initrd file (and making a backup of the old one) before actually deleting the linux-image package files. This happened with all three linux-image packages.

It seems to me that creating an initrd image just before removing it makes not much sense. Especially since on my aged hardware creating an initrd image takes quite a while.

All this was observed on Ubuntu 7.10 Beta. Synaptic Package manager says "synaptic 0.60ubuntu4".

Revision history for this message
Jonathan Hudson (jh+lpd) wrote :

This still happens, and is *very* annoying if the reason one is removing old images is because you've run out of space on /boot, which becomes very difficult to cleanly resolve.

# apt-get remove linux-image-2.6.24-16-powerpc linux-image-2.6.24-16-powerpc-smp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-image-2.6.24-16-powerpc linux-image-2.6.24-16-powerpc-smp
  linux-restricted-modules-2.6.24-16-powerpc
  linux-restricted-modules-2.6.24-16-powerpc-smp
  linux-ubuntu-modules-2.6.24-16-powerpc
  linux-ubuntu-modules-2.6.24-16-powerpc-smp
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 161MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 248864 files and directories currently installed.)
Removing linux-restricted-modules-2.6.24-16-powerpc ...
Removing linux-ubuntu-modules-2.6.24-16-powerpc ...
update-initramfs: Generating /boot/initrd.img-2.6.24-16-powerpc #### ! WTF
Removing linux-image-2.6.24-16-powerpc ...
Removing linux-restricted-modules-2.6.24-16-powerpc-smp ...
Removing linux-ubuntu-modules-2.6.24-16-powerpc-smp ...
update-initramfs: Generating /boot/initrd.img-2.6.24-16-powerpc-smp #### ! WTF
Removing linux-image-2.6.24-16-powerpc-smp ...

Daniel T Chen (crimsun)
Changed in linux-meta:
importance: Undecided → Wishlist
Revision history for this message
Sanyi (sandor-balazsi) wrote :

The BUG is still exist in Intrepid Ibex (8.10)...

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

[This is an automated message. Apologies if it has reached you inappropriately.]

This bug was reported against the linux-meta package when it likely should have been reported against the linux package instead. We are automatically transitioning this to the linux kernel package so that the appropriate teams are notified and made aware of this issue. Thanks.

affects: linux-meta (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Triaged
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Triaged a while ago but has not had any updated comments for quite some time. Please let us know if this issue remains in the current Ubuntu release, http://www.ubuntu.com/getubuntu/download . If the issue remains, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-triage
Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Expired
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.