Skip to content

Remove update-initramfs diversion entirely#5

Merged
pnc merged 1 commit into
mainfrom
pnc/actual-kernel-fix
Jun 1, 2026
Merged

Remove update-initramfs diversion entirely#5
pnc merged 1 commit into
mainfrom
pnc/actual-kernel-fix

Conversation

@pnc
Copy link
Copy Markdown
Member

@pnc pnc commented Jun 1, 2026

The boot-finished guard added in 7d8e1f7 didn't work: cloud-init deletes boot-finished at the start of every boot, so bootcmd always re-applied the diversion. runcmd only runs once-per-instance, so it only cleaned up on first boot. On subsequent boots the diversion was re-applied permanently, causing unattended kernel upgrades to produce no initramfs — same kernel panic as before.

The MODULES=dep setting in initramfs-tools already cuts rebuild time from minutes to seconds, making the diversion unnecessary.

The boot-finished guard added in 7d8e1f7 didn't work: cloud-init
deletes boot-finished at the start of every boot, so bootcmd always
re-applied the diversion. runcmd only runs once-per-instance, so it
only cleaned up on first boot. On subsequent boots the diversion was
re-applied permanently, causing unattended kernel upgrades to produce
no initramfs — same kernel panic as before.

The MODULES=dep setting in initramfs-tools already cuts rebuild time
from minutes to seconds, making the diversion unnecessary.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pnc pnc marked this pull request as draft June 1, 2026 17:37
@pnc pnc marked this pull request as ready for review June 1, 2026 17:51
@pnc pnc requested review from ddellacosta and scott-parker4 June 1, 2026 17:51
@pnc
Copy link
Copy Markdown
Member Author

pnc commented Jun 1, 2026

This was silly, I didn't realize Debian didn't tailor the initrd to only have what it needed. You have to opt into this, which makes update-initramfs super fast.

@pnc pnc added this pull request to the merge queue Jun 1, 2026
Merged via the queue into main with commit 520ad8a Jun 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant