From bdd0b908f674c0b7483f3d01b0446b562a9bfddd Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 15 Feb 2026 04:44:20 +0100 Subject: [PATCH] lib/utils.py: put image path after options --- lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.py b/lib/utils.py index c1eca8cd..99898c39 100755 --- a/lib/utils.py +++ b/lib/utils.py @@ -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"""