ChimeraOS / frzr

A deployment and automatic update mechanism for operating systems
MIT License
59 stars 14 forks source link

Restore A/B-slots #54

Closed BoukeHaarsma23 closed 2 months ago

BoukeHaarsma23 commented 1 year ago

This restores the capability to use A/B slots. Using systemd-boot 2 config files are created:

Users can now select the slot to boot in when holding the space bar at boot. Or select the other slot via command e.g.

sudo systemctl reboot --boot-loader-entry=frzr-slot-B.conf

To Do: migration/handling from old single frzr.conf

alkazar commented 1 year ago

I think the "slot" should be a combination of the OS name, version number, and release hash. That would allow having an arbitrary number of them and having multiple different OSes installed at the same time.

e.g. frzr-chimeraos-45_04170fa.conf

For migration we could just delete "frzr.conf" unconditionally after generating the new configuration.