* [PATCH 0/1] Fix for self-hosted-image v2
@ 2012-04-04 20:07 Paul Eggleton
2012-04-04 20:07 ` [PATCH 1/1] self-hosted-image: decrease reserved space to 0.5% Paul Eggleton
0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggleton @ 2012-04-04 20:07 UTC (permalink / raw)
To: openembedded-core
Simplified version of previous patch to decrease reserved space in
ext3 image. It turns out no additional variable really needs to be
introduced into image_types.bbclass, although this does mean running
tune2fs twice.
Note that this patch should be applied on top of Saul's recent
self-hosted-image patch once that is merged.
The following changes since commit 7c794db563cc35f6deaab1dd0fef35015d47e567:
self-hosted-image: Increase space for build and allow builder user sudo access (2012-04-04 16:16:27 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/self
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/self
Paul Eggleton (1):
self-hosted-image: decrease reserved space to 0.5%
meta/recipes-core/images/self-hosted-image.bb | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
--
1.7.5.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] self-hosted-image: decrease reserved space to 0.5%
2012-04-04 20:07 [PATCH 0/1] Fix for self-hosted-image v2 Paul Eggleton
@ 2012-04-04 20:07 ` Paul Eggleton
2012-04-05 16:41 ` Cui, Dexuan
0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggleton @ 2012-04-04 20:07 UTC (permalink / raw)
To: openembedded-core
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 | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-core/images/self-hosted-image.bb b/meta/recipes-core/images/self-hosted-image.bb
index d2faa66..84c5faf 100644
--- a/meta/recipes-core/images/self-hosted-image.bb
+++ b/meta/recipes-core/images/self-hosted-image.bb
@@ -4,7 +4,7 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-PR = "r9"
+PR = "r10"
CORE_IMAGE_EXTRA_INSTALL = "\
task-self-hosted \
@@ -25,6 +25,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.
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] self-hosted-image: decrease reserved space to 0.5%
2012-04-04 20:07 ` [PATCH 1/1] self-hosted-image: decrease reserved space to 0.5% Paul Eggleton
@ 2012-04-05 16:41 ` Cui, Dexuan
2012-04-05 16:49 ` Paul Eggleton
0 siblings, 1 reply; 4+ messages in thread
From: Cui, Dexuan @ 2012-04-05 16:41 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Hi Paul,
This reminds me of something slightly similar:
Can we enable the -z option of genext2fs in IMAGE_CMD_ext3()?
For a 40G image, this would save the building host many giga bytes, and make the conversion "from .ext3 to .hdddirect" faster.
Thanks,
-- Dexuan
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
> Paul Eggleton
> Sent: Thursday, April 05, 2012 4:08 AM
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [PATCH 1/1] self-hosted-image: decrease reserved space to
> 0.5%
>
> 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 | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-core/images/self-hosted-image.bb
> b/meta/recipes-core/images/self-hosted-image.bb
> index d2faa66..84c5faf 100644
> --- a/meta/recipes-core/images/self-hosted-image.bb
> +++ b/meta/recipes-core/images/self-hosted-image.bb
> @@ -4,7 +4,7 @@ LICENSE = "MIT"
> LIC_FILES_CHKSUM =
> "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
>
> file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de
> 20420"
>
> -PR = "r9"
> +PR = "r10"
>
> CORE_IMAGE_EXTRA_INSTALL = "\
> task-self-hosted \
> @@ -25,6 +25,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.
> --
> 1.7.5.4
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] self-hosted-image: decrease reserved space to 0.5%
2012-04-05 16:41 ` Cui, Dexuan
@ 2012-04-05 16:49 ` Paul Eggleton
0 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2012-04-05 16:49 UTC (permalink / raw)
To: Cui, Dexuan; +Cc: openembedded-core
On Thursday 05 April 2012 16:41:05 Cui, Dexuan wrote:
> This reminds me of something slightly similar:
> Can we enable the -z option of genext2fs in IMAGE_CMD_ext3()?
> For a 40G image, this would save the building host many giga bytes, and make
> the conversion "from .ext3 to .hdddirect" faster.
In principle if it works then we should be able to do it, but I have no idea
if there are any other side-effects of using -z.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-05 16:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-04 20:07 [PATCH 0/1] Fix for self-hosted-image v2 Paul Eggleton
2012-04-04 20:07 ` [PATCH 1/1] self-hosted-image: decrease reserved space to 0.5% Paul Eggleton
2012-04-05 16:41 ` Cui, Dexuan
2012-04-05 16:49 ` Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.