forked from Mirror/pmbootstrap
pmbootstrap flasher flash_kernel --partition (!1741)
Allow changing the kernel partition for fastboot and heimdall in deviceinfo and on the fly while doing "pmbootstrap flasher flash_kernel". Also allow changing the partition for "... flash_rootfs" with fastboot (this was only possible with heimdall so far). Introduce two new deviceinfo variables: * flash_fastboot_partition_kernel * flash_fastboot_partition_system This is useful for devices with dual partitioning that have boot_a and boot_b.
This commit is contained in:
parent
712dd4e20e
commit
39b3a489ef
3 changed files with 18 additions and 6 deletions
|
@ -67,6 +67,9 @@ def arguments_flasher(subparser):
|
|||
flash_kernel = sub.add_parser("flash_kernel", help="flash a kernel")
|
||||
for action in [boot, flash_kernel]:
|
||||
action.add_argument("--flavor", default=None)
|
||||
flash_kernel.add_argument("--partition", default=None,
|
||||
help="partition to flash the kernel to (defaults"
|
||||
" to deviceinfo_flash_*_partition_kernel)")
|
||||
|
||||
# Flash rootfs
|
||||
flash_rootfs = sub.add_parser("flash_rootfs", aliases=["flash_system"],
|
||||
|
@ -74,8 +77,9 @@ def arguments_flasher(subparser):
|
|||
" device (partition layout does not get"
|
||||
" changed)")
|
||||
flash_rootfs.add_argument("--partition", default=None,
|
||||
help="partition to flash to (Android: default"
|
||||
" is 'system', but 'userdata' may have more"
|
||||
help="partition to flash the rootfs to (defaults"
|
||||
" to deviceinfo_flash_*_partition_system,"
|
||||
" 'userdata' on Android may have more"
|
||||
" space)")
|
||||
|
||||
# Actions without extra arguments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue