lib/utils.py: put image path after options

This commit is contained in:
Haelwenn (lanodan) Monnier 2026-02-15 04:44:20 +01:00
parent cd9b8c24a2
commit bdd0b908f6
No known key found for this signature in database

View file

@ -45,7 +45,7 @@ def create_disk(image, disk_type, fs_type, size, bootable=False, mkfs_args=None)
offset = str(1024 * 1024 * (1024 if bootable else 1))
run('parted', '--script', image, 'mklabel', disk_type, 'mkpart',
'primary', fs_type, offset + 'B', '100%')
run('mkfs.' + fs_type, image, '-E', 'offset=' + offset, *mkfs_args)
run('mkfs.' + fs_type, '-E', 'offset=' + offset, *mkfs_args, image)
def mount(source, target, fs_type, options='', **kwargs):
"""Mount filesystem"""