Skip to content

Commit 655faf3

Browse files
committed
lib/utils.py: put image path after options
1 parent 71db760 commit 655faf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def create_disk(image, disk_type, fs_type, size, bootable=False, mkfs_args=None)
4545
offset = str(1024 * 1024 * (1024 if bootable else 1))
4646
run('parted', '--script', image, 'mklabel', disk_type, 'mkpart',
4747
'primary', fs_type, offset + 'B', '100%')
48-
run('mkfs.' + fs_type, image, '-E', 'offset=' + offset, *mkfs_args)
48+
run('mkfs.' + fs_type, '-E', 'offset=' + offset, *mkfs_args, image)
4949

5050
def mount(source, target, fs_type, options='', **kwargs):
5151
"""Mount filesystem"""

0 commit comments

Comments
 (0)