diff options
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r-- | scripts/lib/wic/partition.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index d358aabbd6..0c9b1a5b96 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
@@ -28,7 +28,7 @@ class Partition(): | |||
28 | self.align = args.align | 28 | self.align = args.align |
29 | self.disk = args.disk | 29 | self.disk = args.disk |
30 | self.device = None | 30 | self.device = None |
31 | self.extra_space = args.extra_space | 31 | self.extra_filesystem_space = args.extra_filesystem_space |
32 | self.extra_partition_space = args.extra_partition_space | 32 | self.extra_partition_space = args.extra_partition_space |
33 | self.exclude_path = args.exclude_path | 33 | self.exclude_path = args.exclude_path |
34 | self.include_path = args.include_path | 34 | self.include_path = args.include_path |
@@ -104,8 +104,8 @@ class Partition(): | |||
104 | (actual_rootfs_size, rootfs_size)) | 104 | (actual_rootfs_size, rootfs_size)) |
105 | else: | 105 | else: |
106 | extra_blocks = self.get_extra_block_count(actual_rootfs_size) | 106 | extra_blocks = self.get_extra_block_count(actual_rootfs_size) |
107 | if extra_blocks < self.extra_space: | 107 | if extra_blocks < self.extra_filesystem_space: |
108 | extra_blocks = self.extra_space | 108 | extra_blocks = self.extra_filesystem_space |
109 | 109 | ||
110 | rootfs_size = actual_rootfs_size + extra_blocks | 110 | rootfs_size = actual_rootfs_size + extra_blocks |
111 | rootfs_size = int(rootfs_size * self.overhead_factor) | 111 | rootfs_size = int(rootfs_size * self.overhead_factor) |