summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2015-03-04 17:05:24 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-10 10:47:47 +0000
commitbd0ed7ce67a6e9d292468d15c9d0a7460edf6872 (patch)
tree2e3064ed6062c2adeb31c5c3f31b82439714f600 /meta/classes
parentd6a2a54e5b20b219ed252dce30784289125e1f39 (diff)
downloadpoky-bd0ed7ce67a6e9d292468d15c9d0a7460edf6872.tar.gz
image_types: Fix MIN_BTRFS_SIZE to be 1024 blocks to match ROOTFS_SIZE
[YOCTO #7392] (From OE-Core rev: b75e23568d72aea3c508492c129c361bedd98eb4) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image_types.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 4983e9834d..98a08bf107 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -58,7 +58,7 @@ IMAGE_CMD_ext2 = "oe_mkext234fs ext2 ${EXTRA_IMAGECMD}"
58IMAGE_CMD_ext3 = "oe_mkext234fs ext3 ${EXTRA_IMAGECMD}" 58IMAGE_CMD_ext3 = "oe_mkext234fs ext3 ${EXTRA_IMAGECMD}"
59IMAGE_CMD_ext4 = "oe_mkext234fs ext4 ${EXTRA_IMAGECMD}" 59IMAGE_CMD_ext4 = "oe_mkext234fs ext4 ${EXTRA_IMAGECMD}"
60 60
61MIN_BTRFS_SIZE ?= "16777216" 61MIN_BTRFS_SIZE ?= "16384"
62IMAGE_CMD_btrfs () { 62IMAGE_CMD_btrfs () {
63 if [ ${ROOTFS_SIZE} -gt ${MIN_BTRFS_SIZE} ]; then 63 if [ ${ROOTFS_SIZE} -gt ${MIN_BTRFS_SIZE} ]; then
64 dd if=/dev/zero of=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.btrfs count=${ROOTFS_SIZE} bs=1024 64 dd if=/dev/zero of=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.btrfs count=${ROOTFS_SIZE} bs=1024