Skip to content

kernel/postinst.d: Optimize execution for triggers

When running with trigger support, we do not need to perform the actual initramfs creation from the postinst.d hook but can defer this to the trigger handler. We just need to create a stub for the new initramfs so that updating it will work.

This optimizes specifically the initial installation when initramfs-tools and a kernel are added back-to-back. In such cases, the initramfs is currently created twice, first by the postinst.d hook and then again via the update of the trigger handler.

Closes: #1079509

Merge request reports

Loading