pmbootstrap flasher: add flash_dtbo (MR 2099)

This commit is contained in:
afeuerstein 2021-08-27 18:35:46 +02:00 committed by Oliver Smith
parent 468d313790
commit 2d3cfbcbb4
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
7 changed files with 43 additions and 1 deletions

View file

@ -42,6 +42,15 @@ def run(args, action, flavor=None):
" <https://wiki.postmarketos.org/wiki/"
"Deviceinfo_reference>")
# dtbo flasher requires dtbo partition to be explicitly specified
if action == "flash_dtbo" and not vars["$PARTITION_DTBO"]:
raise RuntimeError("Your device does not have 'dtbo' partition"
" specified; set"
" 'deviceinfo_flash_fastboot_partition_dtbo'"
" in deviceinfo file. See also:"
" <https://wiki.postmarketos.org/wiki/"
"Deviceinfo_reference>")
# Run the commands of each action
for command in cfg["actions"][action]:
# Variable replacement