Skip to content

Difference between InstallUpdate and ApplyUpdate? #521

Answered by jw-msft
br16643 asked this question in Q&A
Discussion options

You must be logged in to vote

Typically, Install is for copying bits and doing necessary setup. For example:

  • decompress and/or decrypt the fs image payload
  • verify signature of disk image
  • write raw image to the target partition

Then, Apply typically attempts to commit/switch-over to the new disk image or use the new data/setup/package(s). For example, in an A/B system partition update scheme, Apply could be what:

  • sets u-boot variable (e.g. via fw_setenv) to specify the new partition to try and boot into
  • sets u-boot variable to track count of boot attempts (0 would be first attempt)
  • returns a reboot result code to cause the agent initiate a reboot.

However, the separation of Install and Apply is mostly a historical …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by br16643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants