ChimeraOS / frzr

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

Update kernel #24

Closed Samsagax closed 1 year ago

Samsagax commented 1 year ago

Allow for kernel updates without breaking the install

alkazar commented 1 year ago

How does this prevent breaking the install after kernel updates? This would require manually running frzr-deploy --update-bootloader but it would generate a bootloader config that attempts to boot the same kernel as before, thus still causing boot failure.

Samsagax commented 1 year ago

It's true we need to run it manually. We can do a pacman hook for it to run automatically. It will copy the generated initramfs and kernel image to the deployments boot so it will match the installed modules (the thing preventing from boot). The bootloader configuration will be reset to our default.

alkazar commented 1 year ago

I prefer this solution for the problem of kernel updates when unlocked: https://github.com/ChimeraOS/frzr/commit/62934aefc38d350e54cca7585ae8e594377456df

Samsagax commented 1 year ago

I prefer this solution for the problem of kernel updates when unlocked: 62934ae

Seems simpler. Maybe this one could help on argument parsing. If you prefer I'll only keep that part.

Samsagax commented 1 year ago

Closing in favor of #25