diff options
author | Denys Dmytriyenko <denis@denix.org> | 2008-12-05 12:48:06 -0500 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@koansoftware.com> | 2009-01-20 16:25:22 +0100 |
commit | 9d7586e655755f51be3f09f3da48147b0937c3e1 (patch) | |
tree | 43fa0d429ff829b046e83d897099eb0a25140774 /classes/image.bbclass | |
parent | d38f1dd24dd6ed94408aa49aad33e46634a129ff (diff) |
image.bbclass: resize images (ext2/ext3) only if they are bigger then IMAGE_ROOTFS_SIZE
Diffstat (limited to 'classes/image.bbclass')
-rw-r--r-- | classes/image.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass index 901ab340ae..c493c73c01 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -107,7 +107,7 @@ fakeroot do_rootfs () { ${IMAGE_PREPROCESS_COMMAND} - ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{print ${IMAGE_EXTRA_SPACE} + $1}'` + ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = ${IMAGE_EXTRA_SPACE} + $1; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'` ${@get_imagecmds(d)} ${IMAGE_POSTPROCESS_COMMAND} |