feren-OS / Feren-OS-Major-Updater

(currently WIP, has some remnants) The GUI for handling Major Updates (base upgrades) in Feren OS
GNU General Public License v3.0
1 stars 2 forks source link

Add an option to perform the update during shutdown #8

Open dominichayesferen opened 1 year ago

dominichayesferen commented 1 year ago

Describe the bug Major Updater should add an option to perform the update during the next shutdown, instead of restarting into the update process and then restarting again after it completes/fails.

The plan

  1. Add a new page before the update begins ("When should updating begin?") where you can pick between "Next time Feren OS starts", or "Immediately after preparation completes".
  2. On that page, also add the option to "Shut Down instead of restarting Feren OS when preparation finishes"
  3. Depending on the option chosen, supply flags to the Major Updater screen to perform the requested operation-pair after preparation completes
  4. If "Immediately" is selected, after preparation run the Major Updater service, but modified to have the update as its stop job, followed by running either reboot or poweroff depending on options
  5. Otherwise, commence update as normal, running either reboot or poweroff depending on options after preparation completes (the reboot after the update completes will happen irregardless)