Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Trevor Woerner <twoerner@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 08/11] build-appliance-image: use a real /tmp
Date: Tue, 21 Feb 2023 21:25:22 -0500	[thread overview]
Message-ID: <20230222022522.GA26598@localhost> (raw)
In-Reply-To: <1745F1D06F6A6D6B.17041@lists.openembedded.org>

On Tue 2023-02-21 @ 03:44:42 PM, Trevor Woerner via lists.openembedded.org wrote:
> Make /tmp a real directory in the root filesystem and not a link to an
> in-memory tmpfs. Otherwise bitbake will run out of inodes on /tmp very quickly
> and stop any build.
> 
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
>  meta/recipes-core/images/build-appliance-image_15.0.0.bb | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/meta/recipes-core/images/build-appliance-image_15.0.0.bb b/meta/recipes-core/images/build-appliance-image_15.0.0.bb
> index 3a84de0a2b43..1f7b96a9fcf4 100644
> --- a/meta/recipes-core/images/build-appliance-image_15.0.0.bb
> +++ b/meta/recipes-core/images/build-appliance-image_15.0.0.bb
> @@ -113,6 +113,12 @@ fakeroot do_tweak_image () {
>  	# add a /lib64 symlink
>  	# this is needed for building rust-native on a 64-bit build appliance
>  	ln -rs ${IMAGE_ROOTFS}/lib ${IMAGE_ROOTFS}/lib64
> +
> +	# make /tmp a real directory and not a link to an in-memory tmpfs
> +	# otherwise /tmp will run out of inodes very quickly when bitbaking
> +	sed -i -e 's#l root root 1777 /tmp /var/tmp#d root root 1777 /tmp none#' ${IMAGE_ROOTFS}/etc/default/volatiles/00_core
> +	mkdir -p ${IMAGE_ROOTFS}/tmp
> +	chmod 1777 ${IMAGE_ROOTFS}/tmp
>  }

Richard, this feels rather "hacky" to me. I can't help wonder if it would be
better to implement a VOLATILE_TMP_DIR mechanism (along the same lines as
VOLATILE_LOG_DIR)?

https://docs.yoctoproject.org/dev/ref-manual/variables.html?highlight=volatile_log_dir#term-VOLATILE_LOG_DIR
https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/initscripts/initscripts_1.0.bb#n107


  parent reply	other threads:[~2023-02-22  2:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-21 20:44 [PATCH 00/11] build-appliance-image revival Trevor Woerner
2023-02-21 20:44 ` [PATCH 01/11] packagegroup-self-hosted: alphabetize Trevor Woerner
2023-02-21 20:44 ` [PATCH 02/11] packagegroup-self-hosted: add zstd Trevor Woerner
2023-02-21 20:44 ` [PATCH 03/11] build-appliance-image: add support for qemu Trevor Woerner
2023-02-24 16:05   ` [OE-core] " Richard Purdie
2023-02-25 13:17     ` Trevor Woerner
     [not found]   ` <1746CE49489610B4.29542@lists.openembedded.org>
2023-02-24 17:26     ` Richard Purdie
2023-02-21 20:44 ` [PATCH 04/11] build-appliance-image: set TERM Trevor Woerner
2023-02-21 20:44 ` [PATCH 05/11] build-appliance-image kernel: linux-yocto: qemuall: add taskstats Trevor Woerner
2023-02-21 20:44 ` [PATCH 06/11] build-appliance-image: fix HOMEPAGE Trevor Woerner
2023-02-21 20:44 ` [PATCH 07/11] build-appliance-image: add /lib64 symlink Trevor Woerner
2023-02-21 20:44 ` [PATCH 08/11] build-appliance-image: use a real /tmp Trevor Woerner
2023-02-21 20:44 ` [PATCH 09/11] build-appliance-image: QB_MEM: allow user config Trevor Woerner
2023-02-22  2:12   ` [OE-core] " Khem Raj
2023-02-21 20:44 ` [PATCH 10/11] QB_SMP: allow user modification Trevor Woerner
2023-02-21 20:44 ` [PATCH 11/11] build-appliance-image: check for xattr feature Trevor Woerner
     [not found] ` <1745F1D06F6A6D6B.17041@lists.openembedded.org>
2023-02-22  2:25   ` Trevor Woerner [this message]
2023-02-22 14:46     ` [OE-core] [PATCH 08/11] build-appliance-image: use a real /tmp Richard Purdie
2023-02-22 20:40       ` Trevor Woerner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230222022522.GA26598@localhost \
    --to=twoerner@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox