mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 06:45:13 +01:00
Add a new --from-downloaded flag to bootc upgrade that allows users to unlock a staged deployment created with --download-only without fetching updates from the container image source. This provides a way to apply already-downloaded updates without triggering a fetch operation, which is useful for scheduled maintenance workflows where the update was downloaded earlier and should now be applied at a scheduled time. Usage: # Download update without applying bootc upgrade --download-only # Later: Apply the staged update (without fetching from image source) bootc upgrade --from-downloaded # Or: Apply staged update and reboot immediately bootc upgrade --from-downloaded --apply The flag conflicts with --check and --download-only as those operations have different purposes. It can be combined with --apply to immediately reboot after unlocking the staged deployment. This commit also updates the documentation (upgrades.md) to describe all three ways to apply a download-only update, and updates the download-only test case (test-25) to use --from-downloaded instead of plain 'bootc upgrade' when clearing the download-only flag. Assisted-by: Claude Code (Sonnet 4.5) Signed-off-by: Wei Shi <wshi@redhat.com>