Fix for self-hosted-image
cover Fix for self-hosted-image
Allow additional options when running tune2fs -j on ext3 images and use that to specify -m 0.5 for self-hosted-image.
Note these patches 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 (2):
classes/image_types: add IMAGE_TUNE2FS_ext3
self-hosted-image: decrease reserved space to 0.5%
meta/classes/image_types.bbclass | 4 +++- meta/recipes-core/images/self-hosted-image.bb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/2 classes/image_types: add IMAGE_TUNE2FS_ext3
Add a variable that allows additional options to be passed to tune2fs, such as -m to control the amount of space reserved for root.
This could potentially be added for other filesystems, but right now we need it only for ext3 for self-hosted-image.
--- meta/classes/image_types.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
meta/classes/image_types.bbclass +3 -1
@@ -132,9 +132,11 @@ IMAGE_CMD_ext2 () { rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN} } +IMAGE_TUNE2FS_ext3 ?= "" + IMAGE_CMD_ext3 () { genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3 - tune2fs -j ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3 + tune2fs -j ${IMAGE_TUNE2FS_ext3} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3 } oe_mkext4fs () {
Signature · 1 line
1.7.5.4
PATCH 2/2 self-hosted-image: decrease reserved space to 0.5%
In reply to Paul EggletonThe 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.
--- meta/recipes-core/images/self-hosted-image.bb | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
meta/recipes-core/images/self-hosted-image.bb +3 -1
@@ -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 \
@@ -14,6 +14,8 @@ IMAGE_FEATURES += "x11-mini package-management" # Ensure there's enough space to do a core-image-sato build, with rm_work enabled IMAGE_ROOTFS_EXTRA_SPACE = "41943040" +# We don't need to reserve much space for root, 0.5% is more than enough +IMAGE_TUNE2FS_ext3 = "-m 0.5" # Do a quiet boot with limited console messages APPEND += "quiet"
Signature · 1 line
1.7.5.4
Quoted 14 lines · Paul Eggleton
Allow additional options when running tune2fs -j on ext3 images and use that to specify -m 0.5 for self-hosted-image.
Note these patches 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-contribpaule/self
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/self
Quoted 8 lines
Paul Eggleton (2):
classes/image_types: addIMAGE_TUNE2FS_ext3
self-hosted-image: decrease reserved space to 0.5%meta/classes/image_types.bbclass | 4 +++- meta/recipes-core/images/self-hosted-image.bb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
Re: [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3
In reply to Paul EggletonQuoted 2 lines · Paul Eggleton
Add a variable that allows additional options to be passed to tune2fs, such as -m to control the amount of space reserved for root.
I'd prefer something like
IMG_POSTCMD_<fstype>
So it is generic enough to not be confusing for other filesystems.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Re: [PATCH 2/2] self-hosted-image: decrease reserved space to 0.5%
In reply to Paul EggletonQuoted 4 lines · Paul Eggleton
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.
Please look at my comment about a possible alternative way of doing it, in a more generic one.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Re: [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3
In reply to Otavio SalvadorQuoted 11 lines · On Wednesday 04 April 2012 13:57:04 Otavio Salvador wrote:
On Wed, Apr 4, 2012 at 12:32, Paul Eggleton
Quoted 2 lines · <[email protected]> wrote:
Add a variable that allows additional options to be passed to tune2fs, such as -m to control the amount of space reserved for root.
I'd prefer something like
IMG_POSTCMD_<fstype>
So it is generic enough to not be confusing for other filesystems.
Are you suggesting this would hold the entire post-command to be run? If not, what other post command could we be referring to in the case of other filesystems? (tune2fs being valid for ext2, ext3 and ext4).
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Re: [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3
Quoted 3 lines · Paul Eggleton
Are you suggesting this would hold the entire post-command to be run? If not, what other post command could we be referring to in the case of other filesystems? (tune2fs being valid for ext2, ext3 and ext4).
Yes; it is more generic and for someone using it, it makes no difference in complexity et all.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Re: [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3
Quoted 9 lines · On Wednesday 04 April 2012 14:26:26 Otavio Salvador wrote:
On Wed, Apr 4, 2012 at 14:12, Paul Eggleton
Quoted 3 lines · <[email protected]> wrote:
Are you suggesting this would hold the entire post-command to be run? If not, what other post command could we be referring to in the case of other filesystems? (tune2fs being valid for ext2, ext3 and ext4).
Yes; it is more generic and for someone using it, it makes no difference in complexity et all.
Actually it does, but I can see some value in it. v2 on the way.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre