Avoid to create the rootfs tarball saves almost 5 minutes

Message ID CAJGKYO5-fNhXMtFZ+rP=jr9BOMJFBFpBWoT14S6vaGeCYhLchw@mail.gmail.com
State Rejected, archived
Headers show
Series Avoid to create the rootfs tarball saves almost 5 minutes | expand

Commit Message

Roberto A. Foglietta Oct. 20, 2022, 5:50 a.m. UTC
Hi all,

 I wish to have your opinion about this change that I have tried

clean isar
build complete

real 20m42,463s
user 0m0,229s
sys 0m0,152s

* 1894555 - rootfs_install_sstate_prepare does nothing
  This commit avoid to create the rootfs tarball

clean isar
build complete

real 16m7,703s
user 0m0,151s
sys 0m0,140s

clean isar
build complete

real 16m6,141s
user 0m0,124s
sys 0m0,149s



Thanks, R-

Comments

Henning Schild Oct. 20, 2022, 11:09 a.m. UTC | #1
Am Thu, 20 Oct 2022 07:50:48 +0200
schrieb "Roberto A. Foglietta" <roberto.foglietta@gmail.com>:

> Hi all,
> 
>  I wish to have your opinion about this change that I have tried

What are you trying to do?

I have a nicer one, map build complete to "/bin/true" and i am ready in
no time. Also saves a ton of disk space.

Maybe you are looking for SSTATE_SKIP_CREATION ?

Henning
 
> clean isar
> build complete
> 
> real 20m42,463s
> user 0m0,229s
> sys 0m0,152s
> 
> * 1894555 - rootfs_install_sstate_prepare does nothing
>   This commit avoid to create the rootfs tarball
> 
> clean isar
> build complete
> 
> real 16m7,703s
> user 0m0,151s
> sys 0m0,140s
> 
> clean isar
> build complete
> 
> real 16m6,141s
> user 0m0,124s
> sys 0m0,149s
> 
> 
> diff --git a/recipes-core/images/eval-image-template.inc
> b/recipes-core/images/eval-image-template.inc
> index 48bfc01..86b761d 100644
> --- a/recipes-core/images/eval-image-template.inc
> +++ b/recipes-core/images/eval-image-template.inc
> @@ -23,3 +23,7 @@ IMAGE_INSTALL += "expand-on-first-boot"
> 
>  WIC_IMAGER_INSTALL += "btrfs-progs"
>  WIC_DEPLOY_PARTITIONS = "0"
> +
> +rootfs_install_sstate_prepare() {
> +       true
> +}
> 
> Thanks, R-
>
Roberto A. Foglietta Oct. 20, 2022, 11:15 a.m. UTC | #2
Il Gio 20 Ott 2022, 13:09 Henning Schild <henning.schild@siemens.com> ha
scritto:

>
> Maybe you are looking for SSTATE_SKIP_CREATION ?
>

Hi Henning, it looks interesting buy it does not sound correct for my needs.

I will give it a try but I know that sscache is very useful for me but not
rootfs because it changes every time I rebuild the project.

Thanks, R-
Henning Schild Oct. 20, 2022, 12:18 p.m. UTC | #3
Am Thu, 20 Oct 2022 13:15:59 +0200
schrieb "Roberto A. Foglietta" <roberto.foglietta@gmail.com>:

> Il Gio 20 Ott 2022, 13:09 Henning Schild <henning.schild@siemens.com>
> ha scritto:
> 
> >
> > Maybe you are looking for SSTATE_SKIP_CREATION ?
> >  
> 
> Hi Henning, it looks interesting buy it does not sound correct for my
> needs.
> 
> I will give it a try but I know that sscache is very useful for me
> but not rootfs because it changes every time I rebuild the project.

Ok so you want to use sstate but exclude the rootfs. The variable can
be set on a per recipe basis. So you can likely bbappend to the recipe
where you want to disable sstate in your layer or in your personal
setup.

Henning

> Thanks, R-

Patch

diff --git a/recipes-core/images/eval-image-template.inc
b/recipes-core/images/eval-image-template.inc
index 48bfc01..86b761d 100644
--- a/recipes-core/images/eval-image-template.inc
+++ b/recipes-core/images/eval-image-template.inc
@@ -23,3 +23,7 @@  IMAGE_INSTALL += "expand-on-first-boot"

 WIC_IMAGER_INSTALL += "btrfs-progs"
 WIC_DEPLOY_PARTITIONS = "0"
+
+rootfs_install_sstate_prepare() {
+       true
+}