Please don't regenerate the initramfs when removal/purge of linux-image-`uname -r` is pending
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-
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".
Changed in linux-meta: | |
importance: | Undecided → Wishlist |
Changed in linux (Ubuntu): | |
status: | New → Triaged |
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 image-2. 6.24-16- powerpc linux-image- 2.6.24- 16-powerpc- smp restricted- modules- 2.6.24- 16-powerpc restricted- modules- 2.6.24- 16-powerpc- smp ubuntu- modules- 2.6.24- 16-powerpc ubuntu- modules- 2.6.24- 16-powerpc- smp d-modules- 2.6.24- 16-powerpc ... modules- 2.6.24- 16-powerpc ... img-2.6. 24-16-powerpc #### ! WTF 2.6.24- 16-powerpc ... d-modules- 2.6.24- 16-powerpc- smp ... modules- 2.6.24- 16-powerpc- smp ... img-2.6. 24-16-powerpc- smp #### ! WTF 2.6.24- 16-powerpc- smp ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-
linux-
linux-
linux-
linux-
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-restricte
Removing linux-ubuntu-
update-initramfs: Generating /boot/initrd.
Removing linux-image-
Removing linux-restricte
Removing linux-ubuntu-
update-initramfs: Generating /boot/initrd.
Removing linux-image-