purge of package causes generation of new initrd.img

Bug #213873 reported by Mirco Müller
8
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-modules. Becaue my /boot-partition is 100% full this failed.

This is the command I used:
sudo dpkg --purge linux-image-2.6.24-12-generic linux-ubuntu-modules-2.6.24-12-generic linux-restricted-modules-2.6.24-12-generic

I'm unable to reproduce the exact output of the command since the list of installed packages changed after I tried this.

Revision history for this message
Colin Watson (cjwatson) wrote :

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.

Changed in linux-ubuntu-modules-2.6.24:
assignee: nobody → ubuntu-kernel-team
status: New → Confirmed
Revision history for this message
Johan Kiviniemi (ion) wrote :

A proposed solution:

Have linux-image-$VER provide a trigger called update-initramfs-$VER, and have maintscripts activate that trigger. When purging linux-image-2.6.24-12-generic, the trigger code for 2.6.24-12-generic would just vanish before getting called.

Revision history for this message
Johan Kiviniemi (ion) wrote :

Heh, Colin was faster. :-)

Revision history for this message
Johan Kiviniemi (ion) wrote :

I might add that update-initramfs currently ends up being called twice in a row when dpkg first removes linux-ubuntu-modules-$VER and then purges it. Using a versioned trigger would reduce the number of calls to one, or to zero if the equivalent linux-image package is removed as well.

Removing linux-ubuntu-modules-2.6.24-14-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.24-14-generic
Purging configuration files for linux-ubuntu-modules-2.6.24-14-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.24-14-generic

Revision history for this message
Matti Lindell (mlind) wrote :

Probably related to bug #149836.

Changed in linux-ubuntu-modules-2.6.24:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

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.