diff options
-rw-r--r-- | meta/classes/image.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index f16dcc20ff..8225980f73 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -126,7 +126,7 @@ fakeroot do_rootfs () { | |||
126 | 126 | ||
127 | ${IMAGE_PREPROCESS_COMMAND} | 127 | ${IMAGE_PREPROCESS_COMMAND} |
128 | 128 | ||
129 | ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{print ${IMAGE_EXTRA_SPACE} + $1}'` | 129 | ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = ${IMAGE_EXTRA_SPACE} + $1; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'` |
130 | ${@get_imagecmds(d)} | 130 | ${@get_imagecmds(d)} |
131 | 131 | ||
132 | ${IMAGE_POSTPROCESS_COMMAND} | 132 | ${IMAGE_POSTPROCESS_COMMAND} |