public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Avoid to create the rootfs tarball saves almost 5 minutes
@ 2022-10-20  5:50 Roberto A. Foglietta
  2022-10-20 11:09 ` Henning Schild
  0 siblings, 1 reply; 4+ messages in thread
From: Roberto A. Foglietta @ 2022-10-20  5:50 UTC (permalink / raw)
  To: isar-users

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


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-

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Avoid to create the rootfs tarball saves almost 5 minutes
  2022-10-20  5:50 Avoid to create the rootfs tarball saves almost 5 minutes Roberto A. Foglietta
@ 2022-10-20 11:09 ` Henning Schild
  2022-10-20 11:15   ` Roberto A. Foglietta
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Schild @ 2022-10-20 11:09 UTC (permalink / raw)
  To: Roberto A. Foglietta; +Cc: isar-users

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-
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Avoid to create the rootfs tarball saves almost 5 minutes
  2022-10-20 11:09 ` Henning Schild
@ 2022-10-20 11:15   ` Roberto A. Foglietta
  2022-10-20 12:18     ` Henning Schild
  0 siblings, 1 reply; 4+ messages in thread
From: Roberto A. Foglietta @ 2022-10-20 11:15 UTC (permalink / raw)
  To: Henning Schild; +Cc: isar-users

[-- Attachment #1: Type: text/plain, Size: 364 bytes --]

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-

[-- Attachment #2: Type: text/html, Size: 965 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Avoid to create the rootfs tarball saves almost 5 minutes
  2022-10-20 11:15   ` Roberto A. Foglietta
@ 2022-10-20 12:18     ` Henning Schild
  0 siblings, 0 replies; 4+ messages in thread
From: Henning Schild @ 2022-10-20 12:18 UTC (permalink / raw)
  To: Roberto A. Foglietta; +Cc: isar-users

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-


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-20 12:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20  5:50 Avoid to create the rootfs tarball saves almost 5 minutes Roberto A. Foglietta
2022-10-20 11:09 ` Henning Schild
2022-10-20 11:15   ` Roberto A. Foglietta
2022-10-20 12:18     ` Henning Schild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox