]> code.ossystems Code Review - openembedded-core.git/commitdiff
self-hosted-image: decrease reserved space to 0.5%
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 4 Apr 2012 15:07:31 +0000 (16:07 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Apr 2012 00:11:21 +0000 (01:11 +0100)
The default amount of reserved space for ext2/3 is 5% - this amounts to
about 2GB of a 40GB filesystem that the builder user can't make use of.
We don't need this much reserved so peg it back to 0.5% which should be
more than enough.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/recipes-core/images/self-hosted-image.bb

index d8fd4a963c00a5384b36417f315977190162f2fb..8adb6837440f0b8af9541055cf780d3216e16896 100644 (file)
@@ -5,7 +5,7 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                     file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
-PR = "r9"
+PR = "r10"
 
 IMAGE_FEATURES += "x11-mini package-management"
 
@@ -22,6 +22,11 @@ inherit core-image
 SRCREV = "8691a588267472eb5a32b978a0eb9ddfd0c91733"
 SRC_URI = "git://git.yoctoproject.org/poky;protocol=git"
 
+IMAGE_CMD_ext3_append () {
+       # We don't need to reserve much space for root, 0.5% is more than enough
+       tune2fs -m 0.5 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3
+}
+
 fakeroot do_populate_poky_src () {
        # Because fetch2's git's unpack uses -s cloneflag, the unpacked git repo
        # will become invalid in the target.