mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-07 11:55:23 +01:00
lib/utils.py: put image path after options
This commit is contained in:
parent
cd9b8c24a2
commit
bdd0b908f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue