flasher flash_system: add possibility to select partition (#565)

Usage example:
pmbootstrap flasher flash_system --partition=userdata
This commit is contained in:
drebrez 2017-09-13 19:50:06 +02:00 committed by Oliver Smith
parent d7cc7085f2
commit a31cd0897b
3 changed files with 16 additions and 4 deletions

View file

@ -50,8 +50,12 @@ def arguments_flasher(subparser):
for action in [boot, flash_kernel]:
action.add_argument("--flavor", default=None)
# Flash system
flash_system = sub.add_parser("flash_system", help="flash the system partition")
flash_system.add_argument("--partition", default=None, help="partition to flash"
" the system image")
# Actions without extra arguments
sub.add_parser("flash_system", help="flash the system partition")
sub.add_parser("sideload", help="sideload recovery zip")
sub.add_parser("list_flavors", help="list installed kernel flavors" +
" inside the device rootfs chroot on this computer")