rancher / elemental-toolkit

:snowflake: The toolkit to build, ship and maintain cloud-init driven Linux derivatives based on container images
https://rancher.github.io/elemental-toolkit/docs/
Apache License 2.0
289 stars 49 forks source link

Move recovery kernel and initrd out of recovery image #1930

Closed davidcassany closed 6 months ago

davidcassany commented 7 months ago

Consider extracting the kernel, initrd and bootarguments in EFI partition to:

Requires matching kernel, initrd and args with snapshots and probably find a mechanism to actually asses the loaded kernel and initrd matches the appropriate snapshot.

davidcassany commented 7 months ago

I have been thinking further about it and I think that probably we could start by considering extracting the kernel and the initrd from the recovery image in a similar way we do the ISOs, this way the ISOs and RAW images would look almost the same. That would also allow us having squashfs compressed images for recovery and keep secure boot enabled.

frelon commented 6 months ago

ADR here: https://github.com/rancher/elemental-toolkit/wiki/ADRs#0001-extract-recovery-kernel