image/image: rename losetup_rootfs_image() to losetup_setup_image()
This commit is contained in:
parent
7d9e48a652
commit
5ae07ab0ea
4 changed files with 9 additions and 9 deletions
|
@ -13,7 +13,7 @@ from flavours.cli import profile_option
|
|||
from wrapper import enforce_wrap
|
||||
|
||||
from .fastboot import fastboot_boot, fastboot_erase
|
||||
from .image import get_device_name, losetup_rootfs_image, get_image_path, dump_aboot, dump_lk2nd
|
||||
from .image import get_device_name, losetup_setup_image, get_image_path, dump_aboot, dump_lk2nd
|
||||
|
||||
LK2ND = FLASH_PARTS['LK2ND']
|
||||
ABOOT = FLASH_PARTS['ABOOT']
|
||||
|
@ -61,7 +61,7 @@ def cmd_boot(
|
|||
if not os.path.exists(path):
|
||||
urllib.request.urlretrieve(f'https://github.com/dreemurrs-embedded/Jumpdrive/releases/download/{JUMPDRIVE_VERSION}/{file}', path)
|
||||
else:
|
||||
loop_device = losetup_rootfs_image(image_path, sector_size)
|
||||
loop_device = losetup_setup_image(image_path, sector_size)
|
||||
if type == LK2ND:
|
||||
path = dump_lk2nd(loop_device + 'p1')
|
||||
elif type == ABOOT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue