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
291 stars 53 forks source link

Snapshot recovery upgrade #2021

Closed frelon closed 6 months ago

frelon commented 7 months ago

The new behavior of deploying the recovery system is prone to errors if an error during the upgrade.

The current method of overwriting the kernel/initrd/bootargs.cfg and symlinks should be switched to a more snapshotty approach deploying the recovery system to a new directory and switching over to use that directory once all files are deployed.

This would also help clean up old files not overwritten during the upgrade.