mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-22 21:25:43 -05:00
image: rename aboot
to abootimg
and rootfs
to full
This commit is contained in:
parent
407d8893a3
commit
3c9b96f03f
2 changed files with 5 additions and 5 deletions
|
@ -2,8 +2,8 @@ from typehelpers import TypeAlias
|
||||||
|
|
||||||
FASTBOOT = 'fastboot'
|
FASTBOOT = 'fastboot'
|
||||||
FLASH_PARTS = {
|
FLASH_PARTS = {
|
||||||
'ROOTFS': 'rootfs',
|
'FULL': 'full',
|
||||||
'ABOOT': 'aboot',
|
'ABOOT': 'abootimg',
|
||||||
'LK2ND': 'lk2nd',
|
'LK2ND': 'lk2nd',
|
||||||
'QHYPSTUB': 'qhypstub',
|
'QHYPSTUB': 'qhypstub',
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ from .image import dd_image, dump_aboot, dump_lk2nd, dump_qhypstub, get_image_pa
|
||||||
ABOOT = FLASH_PARTS['ABOOT']
|
ABOOT = FLASH_PARTS['ABOOT']
|
||||||
LK2ND = FLASH_PARTS['LK2ND']
|
LK2ND = FLASH_PARTS['LK2ND']
|
||||||
QHYPSTUB = FLASH_PARTS['QHYPSTUB']
|
QHYPSTUB = FLASH_PARTS['QHYPSTUB']
|
||||||
ROOTFS = FLASH_PARTS['ROOTFS']
|
FULL_IMG = FLASH_PARTS['FULL']
|
||||||
|
|
||||||
DD = 'dd'
|
DD = 'dd'
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ def cmd_flash(
|
||||||
"""
|
"""
|
||||||
Flash a partition onto a device.
|
Flash a partition onto a device.
|
||||||
|
|
||||||
The syntax of LOCATION depends on the flashing method and is usually only required for flashing "rootfs":
|
The syntax of LOCATION depends on the flashing method and is usually only required for flashing "full":
|
||||||
|
|
||||||
\b
|
\b
|
||||||
- fastboot: the regular fastboot partition identifier. Usually "userdata"
|
- fastboot: the regular fastboot partition identifier. Usually "userdata"
|
||||||
|
@ -108,7 +108,7 @@ def cmd_flash(
|
||||||
"This will brick your phone and is not what you want.\n"
|
"This will brick your phone and is not what you want.\n"
|
||||||
'Aborting.\nDid you mean to flash to "boot"?')
|
'Aborting.\nDid you mean to flash to "boot"?')
|
||||||
|
|
||||||
if what == ROOTFS:
|
if what == FULL_IMG:
|
||||||
path = ''
|
path = ''
|
||||||
if method not in FLASH_METHODS:
|
if method not in FLASH_METHODS:
|
||||||
raise Exception(f"Flash method {method} not supported!")
|
raise Exception(f"Flash method {method} not supported!")
|
||||||
|
|
Loading…
Add table
Reference in a new issue