Kernelstub's initrd.img isn't updated automatically any time the initramfs is

Bug #1675058 reported by Ian Santopietro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kernelstub
Fix Released
High
Ian Santopietro

Bug Description

update-initramfs is called in a wide variety of cases, and this will automatically update the initramfs stored on disk, even without updating the kernel. However, kernelstub only automatically runs on updates when the kernel is upgraded. This can lead to a case where the packages on the system and the booted initrd.img are out of sync, which can cause many different issues.

Example:

1. Install kernelstub
2. Reboot > Boot/login works
3. Update Kernel > Boot/login works
4. Update Nvidia Driver > > Boot/login fails

The Nvidia driver update rebuilds the initrd.img stored on disk. However, because there was no kernel update, the /etc/kernel/postinst.d trigger was never run, therefore the system was booted using the pre-update kernelstub

Changed in kernelstub:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Ian Santopietro (isantop)
information type: Proprietary → Public
Revision history for this message
Ian Santopietro (isantop) wrote :

Revision 16 adds options to manually specify the kernel and initrd. This is fundamental infrastructure for keeping the initrd up to date, since update-initramfs creates a backup of the old initrd that breaks the automatic detection, requiring manual specification.

Changed in kernelstub:
status: Confirmed → In Progress
Changed in kernelstub:
status: In Progress → Fix Committed
Revision history for this message
Ian Santopietro (isantop) wrote :

More robust support while installing and removing kernels has been added. Kernelstub now takes -k and -i arguments which set the kernel image and initrd image paths respectively. These are passed in the Kernel and Initrd trigger files to ensure that kernelstub is passed the correct files and reduce the odds of non-boots.

Changed in kernelstub:
status: Fix Committed → Fix Released
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.