purge of package causes generation of new initrd.img
Bug #213873 reported by
Mirco Müller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
While trying to free some hd-space on 100 MBytes large /boot-partition, I got errors from the update-initramfs script, which tried to generate a new initrd.img for linux-ubuntu-
This is the command I used:
sudo dpkg --purge linux-image-
I'm unable to reproduce the exact output of the command since the list of installed packages changed after I tried this.
Changed in linux-ubuntu-modules-2.6.24: | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
To post a comment you must log in.
Johan Kiviniemi suggested on IRC that, instead of calling update-initramfs directly, linux-ubuntu- modules- *.postrm should activate a dpkg trigger with the kernel version in its name (that is, more specific than the existing update-initramfs trigger which updates the current initramfs version). This trigger would be provided by the linux-image-* package, so that if you remove the corresponding linux-image-* in the same dpkg run then you don't need to have disk space to regenerate the initramfs.
I think it's too late to attempt to do this for 8.04, but I'd be happy to offer implementation advice later if needed.