diff options
-rw-r--r-- | meta/lib/oe/image.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py index 0049d46472..ccc849da29 100644 --- a/meta/lib/oe/image.py +++ b/meta/lib/oe/image.py | |||
@@ -34,8 +34,8 @@ class Image(object): | |||
34 | self.d.getVar('IMAGE_ROOTFS', True)]) | 34 | self.d.getVar('IMAGE_ROOTFS', True)]) |
35 | size_kb = int(output.split()[0]) | 35 | size_kb = int(output.split()[0]) |
36 | base_size = size_kb * overhead_factor | 36 | base_size = size_kb * overhead_factor |
37 | if base_size < rootfs_req_size: | 37 | base_size = (base_size, rootfs_req_size)[base_size < rootfs_req_size] + \ |
38 | base_size = rootfs_req_size + rootfs_extra_space | 38 | rootfs_extra_space |
39 | 39 | ||
40 | if base_size != int(base_size): | 40 | if base_size != int(base_size): |
41 | base_size = int(base_size + 1) | 41 | base_size = int(base_size + 1) |