From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6767012587809800192 X-Received: by 2002:a05:600c:23ce:: with SMTP id p14mr9062172wmb.114.1580279636364; Tue, 28 Jan 2020 22:33:56 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:ea84:: with SMTP id s4ls11438148wrm.11.gmail; Tue, 28 Jan 2020 22:33:55 -0800 (PST) X-Google-Smtp-Source: APXvYqyLidMCSn8/eFagt8TSLPVirPvkVqidkCHAJftTSAHtDs1AkIvKkfrrcV8rnY2RrHoV+rIO X-Received: by 2002:adf:ea51:: with SMTP id j17mr33481494wrn.83.1580279635653; Tue, 28 Jan 2020 22:33:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580279635; cv=none; d=google.com; s=arc-20160816; b=CqsPi2xz6LiN3Kg7pxYQ4mrLNmRdEAZHAN2yFY0E60tF/ds0WTkaZgJErklEOBgNXX vhmagsm/Km8Pw+XnqYEF89nY4rH6EtvcDF+gUKxroQQnmhiMT/YmaNEVypzjQ/+jxX74 Vyl05lBgqzp3CrZ2ETnoKPNGJNuK8J91Gu2WaikjXmqABR9jQodvFv+i2tgcgNrkHUsq 2btX4ZRX6UAC4qFoSSa7pry0fFaCSOEF2Wp2K/dQ83+2pBohpnLhfECqTyXtH1/5e451 o0cqLd0xtfoBd+CBadeZDQwjoDzUpCs9ji1aKOA+Eagja26EdEua36GsLSfNSioKG0FY LtVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:date:from:dkim-signature; bh=BaDtXEUyPkGx5Ar3zGzrew9FoU5hMTvqTKtiy6Gha5k=; b=wJJ6LTu+HyDgEnwGPzI7l15UxbOZ/pGVSwypqGAP8VvUwnY7FSQUtruazky5gQ4htt ogbxsJEqj3qWUMd4VI3/fUYVM2qgqFc27KRpgiVd3QnPFwQr9PUSNP3blLJF7kncHc8L Y+PzaV5+kf7Jt8D+aVfeTaUBE5UjaTlikyT2kKOIkt6shMR/H6bpjkcpH1mh+tvjhs96 fn9YyHfjeUlCdyRt4fk714AEJ8Gm07QdgOwYjHLRzhhRiUrKKLAv2CWaWf/TDIv+BKen x7eHQZXdng4zzlfeaCThcusVOnR4abjcgF+HRVjdhZN0E+12NbbQS//1tIOwtGSQJHt1 yDRw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DK8zQhzK; spf=pass (google.com: domain of vijaikumar.kanagarajan@gmail.com designates 2a00:1450:4864:20::443 as permitted sender) smtp.mailfrom=vijaikumar.kanagarajan@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com. [2a00:1450:4864:20::443]) by gmr-mx.google.com with ESMTPS id g3si34081wrw.5.2020.01.28.22.33.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jan 2020 22:33:55 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar.kanagarajan@gmail.com designates 2a00:1450:4864:20::443 as permitted sender) client-ip=2a00:1450:4864:20::443; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DK8zQhzK; spf=pass (google.com: domain of vijaikumar.kanagarajan@gmail.com designates 2a00:1450:4864:20::443 as permitted sender) smtp.mailfrom=vijaikumar.kanagarajan@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-wr1-x443.google.com with SMTP id z3so18822820wru.3 for ; Tue, 28 Jan 2020 22:33:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BaDtXEUyPkGx5Ar3zGzrew9FoU5hMTvqTKtiy6Gha5k=; b=DK8zQhzKEKNmDo5mIL7+qLjb8iu9Zres9k5aqRgHTMHgYYuGYmyk3y2r+JK1guBKxr q2pmLyFlGj4d78lsMUCvtP0DhaOLodpa42gdhCpjrZI0lLIaMSCDXieUMBtXnciHLYK6 LuqGlW2x8FnsgRgjjuTJDQs25MGfdJvGyPLuSX3TNaxQSJl8bFEpdD4MORwAq3TOhsqQ +1Z6VRf3+fHqxqXwv6ADrqoE2bwmP8SRwjowF9NsGZOWz0XqbqVEn3jYOCfDlztkkJjZ mWz+F+XnqKYODMZSPiM07O3VsQ/scaIyyPtvWC27x+3BTAcVlnmwWH/z+L4j/ha06SFR c7JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BaDtXEUyPkGx5Ar3zGzrew9FoU5hMTvqTKtiy6Gha5k=; b=ZxeSvLmZqO++8tNE65oMpb1bkmh87vfMOAOWoxDWax8L1d1B7kuIplawSprKPrOrZx gIXEilZ/o2rtfc0sNoiiWIQeWc68PWHGEPyRfLYVn5UYtAME67zKOZmhBlNactyJLFYf WlUvPJ+Qp1t8qsCVmj2sOcy0vawbZjSIYEU+oIDVnRiA8XSbO6yME0p2zJ3eOfnj3qqX QK47Ayh/a31W24OwhUw1cR/LP3AIIK/RJ6ydGvEnRxNC/G83j7Cz4AwhbUSr+4fNya08 O9YPTzIO7T232AWp4Rselt78YJ5STn7+4S1sLzUuOrVZpwS7q7VbL963AGjbihz9dXNM IE8A== X-Gm-Message-State: APjAAAUK2qoTbQsElrM7Ogb2WxHQXG+4Q8aCFgrgo/OOMAFxv87MfN2j OUW+grxZQy0BD/y/q3fhYWc= X-Received: by 2002:a5d:6a8e:: with SMTP id s14mr34873703wru.150.1580279635226; Tue, 28 Jan 2020 22:33:55 -0800 (PST) Return-Path: Received: from oxygen (nat-sch.mentorg.com. [139.181.36.34]) by smtp.gmail.com with ESMTPSA id p7sm1027333wmp.31.2020.01.28.22.33.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jan 2020 22:33:54 -0800 (PST) From: Vijai Kumar K X-Google-Original-From: Vijai Kumar K Date: Wed, 29 Jan 2020 12:03:49 +0530 To: quirin.gylstorff@siemens.com Cc: Vijai Kumar K , Jan Kiszka , isar-users@googlegroups.com Subject: Re: [PATCH] targz-img: Ignore tar exit code 1 Message-ID: <20200129063349.GA13616@oxygen> References: <20191205174441.16406-1-Vijaikumar_Kangarajan@mentor.com> <85e91f0a-da08-5345-a666-b3026bee4d96@siemens.com> <20191205191735.GA16912@oxygen> <7972e109-f8a0-6f21-bd00-4312610fd414@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7972e109-f8a0-6f21-bd00-4312610fd414@siemens.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-TUID: g+/2W+2ZKxHc On Thu, Dec 05, 2019 at 08:31:48PM +0100, Jan Kiszka wrote: > 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 > >>> > >>> 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. > > 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. Hi Quirin, Do you have anything planned on this? If not, I can have a look. Please do let me know. Thanks, Vijai Kumar K > > Jan > > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > Corporate Competence Center Embedded Linux