public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: "[ext] Jan Kiszka" <jan.kiszka@siemens.com>
Cc: Vijai Kumar K <vijaikumar.kanagarajan@gmail.com>,
	Quirin Gylstorff <quirin.gylstorff@siemens.com>,
	<isar-users@googlegroups.com>
Subject: Re: [PATCH] targz-img: Ignore tar exit code 1
Date: Fri, 6 Dec 2019 11:32:53 +0100	[thread overview]
Message-ID: <20191206113253.5ae6ca79@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <7972e109-f8a0-6f21-bd00-4312610fd414@siemens.com>

Am Thu, 5 Dec 2019 20:31:48 +0100
schrieb "[ext] Jan Kiszka" <jan.kiszka@siemens.com>:

> On 05.12.19 20:17, Vijai Kumar K wrote:
> > On Thu, Dec 05, 2019 at 07:04:07PM +0100, Jan Kiszka wrote:  
> >> On 05.12.19 18:44, vijaikumar.kanagarajan@gmail.com wrote:  
> >>> From: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
> >>>
> >>> Sometimes during packaging tar prints a warning "file changed as
> >>> we read it" and exits with return code 1. This is observed when
> >>> we generete both wic-img and targz-img together. Ignore the
> >>> error.  
> >>
> >> Ignoring errors is rarely a good idea. In this case, it tells you
> >> that you have a bug in your layer that missing a dependency. I
> >> know this because we once had the same issue in a product layer.
> >> So: NAK
> >>
> >> Jan  
> > 
> > Ah! Ok. Back to square one I guess. Its currently observed in our
> > downstream setups only. I have no good reason to justify it.
> > Reproducing this issue is gonna be difficult. Let me see if I can
> > monitor file changes and pinpoint the exact condition. But this is
> > going to take a while.
> > 
> > If it helps, the scenario is IMAGE_TYPE set to wic-img and
> > targz-img is inherited so both are executed for a build. Also, on a
> > seperate note  
> 
> wic may have found a reason to modify the rootfs while integrating it.
> So a first shot could be making targz depend on wic completion.

I hope it did not. But my first guess would be /etc/fstab. Whichever
file it touched, it should only affect the wic image! Worth checking
whether wic changes the original and maybe fix that.

Henning

> BTW, this sounds similar to
> https://gitlab.com/cip-project/cip-core/isar-cip-core/blob/next/classes/wic-targz-img.bbclass
> - and that class may have the same issue...
> 
> > IMAGE_TYPE's functionality could be extended to provide multiple
> > image types. I believe we could specify only one right now. Former
> > is more clean and particularly useful if one wants a wic for sd
> > boot and tar for nfsroot. Planning to take this up next.  
> 
> Right, that is of general interest, indeed. Quirin has something
> planned around the same use case as well.
> 
> Jan
> 


  reply	other threads:[~2019-12-06 10:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-05 17:44 vijaikumar.kanagarajan
2019-12-05 18:04 ` Jan Kiszka
2019-12-05 19:17   ` Vijai Kumar K
2019-12-05 19:31     ` Jan Kiszka
2019-12-06 10:32       ` Henning Schild [this message]
2019-12-06 11:13       ` Gylstorff Quirin
2019-12-06 11:18         ` vijai kumar
2020-01-29  6:33       ` Vijai Kumar K
2020-02-06 18:58         ` vijai kumar

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=20191206113253.5ae6ca79@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=quirin.gylstorff@siemens.com \
    --cc=vijaikumar.kanagarajan@gmail.com \
    /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