Skip to content

Add Collection ID check for offline upgrades

Denis Pynkin requested to merge wip/d4s/T5654 into apertis/v2019dev0

Starting from this commit any static delta file without Collection ID and correct refs will be refused with error.

On the target device at least one remote must have the correct 'collection-id' field and branch listed in 'ostree.ref-binding' metadata of inlined commit from upgrade bundle.

Function 'aum_get_target_checksum()' has been renamed to 'aum_get_target_metadata()' with changed API and functionality. Currently this function tries to get needed information from upgrade bundle and validate the collected information.

Added check if commit timestamp from static bundle is not older than already deployed.

Add option '--force' for offline upgrade. If updatectl is called with --force option for offline update with static bundle, then following checks will be disabled:

  • Collection ID and refs are applicable for current system
  • timestamp is not older then already deployed
  • check if commit ID is blacklisted
Edited by Denis Pynkin

Merge request reports