upgrading does not defer initramfs updates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-firmware (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Upgrading linux-firmware (1.173.20) on Ubuntu (18.04.5) will cause the initramfs files to be updated during the "setting up" phase of linux-firmware's installation. However, if there are other packages that also require initramfs to be updated, they will be updated again later during the "processing triggers" phase. The triggers mechanism of deb-installer is designed to avoid this duplication of effort and speed up the time taken to complete an upgrade. If there is no specific reason for linux-firmware to force the initramfs update during setup, I believe it makes sense to defer that action.
In the excerpt below, udev and linux-firmware are both in the list of packages to be upgraded. Udev uses the trigger mechanism and linux-firmware does not.
> # apt dist-upgrade
> ...
> Setting up libglib2.0-data (2.56.4-
> Setting up udev (237-3ubuntu10.46) ...
> update-initramfs: deferring update (trigger activated)
> Setting up libldap-2.4-2:amd64 (2.4.45+
> ...
> Setting up python3-ptyprocess (0.5.2-1) ...
> Setting up linux-firmware (1.173.20) ...
> update-initramfs: Generating /boot/initrd.
> update-initramfs: Generating /boot/initrd.
> Setting up liblwres160:amd64 (1:9.11.
> ...
> Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
> Processing triggers for initramfs-tools (0.130ubuntu3.11) ...
> update-initramfs: Generating /boot/initrd.
> #
Reference: https:/
Status changed to 'Confirmed' because the bug affects multiple users.