diff options
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r-- | scripts/lib/wic/partition.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 959035a971..f3835339af 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
@@ -314,7 +314,7 @@ class Partition(): | |||
314 | Prepare an empty ext2/3/4 partition. | 314 | Prepare an empty ext2/3/4 partition. |
315 | """ | 315 | """ |
316 | with open(rootfs, 'w') as sparse: | 316 | with open(rootfs, 'w') as sparse: |
317 | os.ftruncate(sparse.fileno(), rootfs_size * 1024) | 317 | os.ftruncate(sparse.fileno(), self.size * 1024) |
318 | 318 | ||
319 | extra_imagecmd = "-i 8192" | 319 | extra_imagecmd = "-i 8192" |
320 | 320 | ||
@@ -332,7 +332,7 @@ class Partition(): | |||
332 | Prepare an empty btrfs partition. | 332 | Prepare an empty btrfs partition. |
333 | """ | 333 | """ |
334 | with open(rootfs, 'w') as sparse: | 334 | with open(rootfs, 'w') as sparse: |
335 | os.ftruncate(sparse.fileno(), rootfs_size * 1024) | 335 | os.ftruncate(sparse.fileno(), self.size * 1024) |
336 | 336 | ||
337 | label_str = "" | 337 | label_str = "" |
338 | if self.label: | 338 | if self.label: |