diff options
-rw-r--r-- | meta/classes/image.bbclass | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index ea77ab8878..039feec792 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -455,8 +455,7 @@ def get_rootfs_size(d): d.getVar('IMAGE_ROOTFS', True)]) size_kb = int(output.split()[0]) base_size = size_kb * overhead_factor - base_size = (base_size, rootfs_req_size)[base_size < rootfs_req_size] + \ - rootfs_extra_space + base_size = max(base_size, rootfs_req_size) + rootfs_extra_space if base_size != int(base_size): base_size = int(base_size + 1) @@ -544,4 +543,3 @@ do_bundle_initramfs () { : } addtask bundle_initramfs after do_image_complete - |