-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for replacing any partition image
This commit adds support for replacing any partition image within the payload with a custom image. This is useful, for example, to add a custom kernel to an OTA, which may involve partitions that wouldn't normally be touched (eg. `vendor_dlkm`). Any image specified via `--replace` will have its corresponding descriptor in the vbmeta image updated. This is handled recursively. For example, replacing `vendor_dlkm` would update both `vbmeta_vendor` and `vbmeta`. This requires all vbmeta images to be extracted during the patching process so that a complete dependency graph can be computed. The performance hit in doing so is negligible, but does require the checksums of the stripped images to be updated for the tests. Fixes: #102 Signed-off-by: Andrew Gunnerson <[email protected]>
- Loading branch information
1 parent
2bc69f5
commit d1f096e
Showing
5 changed files
with
275 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.