From patchwork Tue Nov 24 22:05:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 202 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:df02:0:0:0:0:0 with SMTP id i2csp152194oou; Wed, 25 Nov 2020 00:06:11 -0800 (PST) X-Received: by 2002:a19:d02:: with SMTP id 2mr896283lfn.294.1606291571566; Wed, 25 Nov 2020 00:06:11 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1606291571; cv=pass; d=google.com; s=arc-20160816; b=MyM6c8X9qgES/WlP5Wi5hhNXcLJR+v1q4bWHgxxLG4bJG+OPGm31JAozuvcYGm9kSv 9g4asCz31o3GfFxtQyj5agyGJZIie6NRv34Kzua41fA+ArSKqPFRhyl9BQN6+1sb+Tvr NT6VAZjkSXMt9SVpCk6dJGw+al/yqZHSnaZUuVXxbE2X90lJJJYgPFZXGMyvlZmr/YXd NYCZhft+bkHW9bk7kzNqU017QPZPCwgEIEI3532x9TwwlkooYEstORWS7juTLVAdYJE6 BW6irhfTFPN22POOMqmxurAv6QKhWX2oUuNqPo32uOG5fxFw9ni7S3dSEwrTmNHiRmA1 Ai5w== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=N820vmk1eR0/TH1H7ZJrGvZoVyAxSa/U4tsn/zmQ+Qk=; b=0nxWzY7iddHldgT7IyivX8u74tg6i/GqFH7uI7uSO1lU8LorSHqmlrEkLihdjQYdBg hL3twd3i1wevGIrdFSlE8aCoswNYwtrkhIWToxn/xjQXIVWTV9zSxYIas2XG3g8Q2U+V 0jKkkbXtpemYHOLjHJkxgoRdoaDBLbTHo1FOCh4ft8d4NPqWDsOsR7VV6lz1izW6xOdp vDBcXma4Ac8mRHzgqeBeoaFpDRIppckXXHZLEqJQ1KPiVA+Tch1VbWJfeeHxfXML3CIk KAhv9GnlUaylnt6Atp9E2UoNdX/kYLd2iTT7x5Szma/o5fIB/5k284lkekc1XSHHo+cC ZvbA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b="fe5+F/2O"; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrb45a7d6qkgqepux2uha@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRB45A7D6QKGQEPUX2UHA@googlegroups.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id a7sor276616lff.24.2020.11.25.00.06.11 (Google Transport Security); Wed, 25 Nov 2020 00:06:11 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbcwp7lf37ukrb45a7d6qkgqepux2uha@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b="fe5+F/2O"; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrb45a7d6qkgqepux2uha@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRB45A7D6QKGQEPUX2UHA@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1606291571; cv=pass; d=google.com; s=arc-20160816; b=zbv7eW7zoOEoYHXgyvqojVzDK26UY5cmf7cWFs31WnHKitDbiGQ1MrUI1IPKil32bn CxN2NUkWmJH6uah6NNrnoEl9yQaU+rKYUjzyrOG+sheWo3htIQLyVr/r+qkk/uUprcmE Yj3WGCmtPNDEHcyQZ7neQhMATWRaWEKr/BUh/WnyvKDtcANOsgk8mi6YHkiDLU8MiMij ASDrCvE4gypIS3olrY2XPteLQWK7bbSoKWu2yt133hb4JkQPEohV8L+1z/5Sz82w1zI5 FuHRwsVrzaoQe/7fkKqGm7NI6XgmG1Frnk3Ji4SNWMSs5YA6glfYN/5a/kuUkheBIHgm jdUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=N820vmk1eR0/TH1H7ZJrGvZoVyAxSa/U4tsn/zmQ+Qk=; b=zOEVz89Ctna5kNp/s+k+GXy9HkL+zOdpqaACXSk+kZw0s+oBalQL96lxNLM8nQZKYE WyLbYrCujzKrK1fkhgidGKSyoqF5yUAgIHda2oBd5OjJBnFVyNyHoEaXmQdb7B7DjC+x DbzIl3jfvzrV/1aC42BH8KxwybwjltA/qYk9cl3qVvV0ihMSUMCPKZYojCxRG3ULhBPR iql2lWgCmf5HAk78zFCFCp2oAHZvSomqX3IE7JXNNtYj4IlkQQ2jvIxyUY+G7lYF4aXn NI9lPH4BbpmXTr8fnp1tcuh4HXvwNcruQdFvZbLv9cpEd6+oRO4o8KnpNm9GS+Xxq95r 7lsg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=N820vmk1eR0/TH1H7ZJrGvZoVyAxSa/U4tsn/zmQ+Qk=; b=fe5+F/2OWDbxuj4R6bBynHS3byxNU+rAa9PYUb4Mxta7o93kaZh3pFYWIxrD0qfhBv p/6TZWNF12Dpbvgug/zviItGHbepsXI34FW2m/jVb1SYbiavpmaH6gb8Qd2YF1u2VFGz KzzpR/3OgCZrewHk35Mr1m1kFSs2aKzzahd7UJ2DKh+EMl8LMU4bWq+3lzMjsUvpB+lJ e4kvHP/MorxIhMfUQmLExpxozjjTDMs/H6KqtN/5bqEj1Zy8ZrzUg8tfrOEvuO/cOfc8 QX/eBWvcaWFZ0TVMmQpVOJ1eDoKDLNwxn42UdbJkK/mm8oiEhJcdQgfQzw4gUpewRII1 FJQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=N820vmk1eR0/TH1H7ZJrGvZoVyAxSa/U4tsn/zmQ+Qk=; b=hbqZuIrWOyykdS8ROx6gRgUdW4jv3Ln0Dgw+L3AnSRNZZIJq5le+8wntbX9yssEuwa s6YGh+dKzDHmpoJ1RR1oBEw7JAvPtCkYrTguxGxreQ8UwraE81kYwvBcaUxcPU1tFUyZ aeAiKOw9ULemz2HAJzlj7VtVoj3K5WVDsvJOKpzZ/o7BiZ/yJ1I/uuEPp93B8ov9SPfj um3XXBHBftZLH25586Mw0CN00gXFKH1F6JgtV8PhC0cb012BmDfsJOcEnSi4IcfxHN43 iN8gk336u/Bp5Cyg1AWd69ZafAvHvLQviIx9R8yVb0PbWUqHCDyswMFFmxY5c7D7+xzc GjPw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM531+dyuDI7yR9UpjeKpcbi6zQaDxqNfhq6sYSXO/lB35HJf1MAD2 ABf07dCGx7FFquyAOSdlTGE= X-Google-Smtp-Source: ABdhPJyLDYyOtg9rOgaNcY1+AQrP+TmrF3DZwShilhHPzNgv417xJeB2Yaaqxa3+/9/h9jdl9kDf1g== X-Received: by 2002:ac2:46f3:: with SMTP id q19mr869293lfo.76.1606291571255; Wed, 25 Nov 2020 00:06:11 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:d0e:: with SMTP id 14ls872891lfn.0.gmail; Wed, 25 Nov 2020 00:06:10 -0800 (PST) X-Received: by 2002:ac2:46f3:: with SMTP id q19mr869269lfo.76.1606291570326; Wed, 25 Nov 2020 00:06:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606291570; cv=none; d=google.com; s=arc-20160816; b=ZaPmWoNDyuoMypIjtxs+FSW63UaPy1iLMl7bO1Kx6ki+V3RFnNdcGS3B0Dajs5sDe0 EAVUFZqKf0KDqmpai2bS1eAOuoOd12H52K/E1Igcoc2E/dNvPerETWdNh9SZewt7RNWt 5FiDhni3CLmPhml9vr/Wxl+BHIblpx7nFW+pLuRby9L11w71H5BFTlbcAptcaGKbaFzz sGUBOdWPM4idVZ0zl4eFKJ6kSExoH4B06vbK8rQweWvS79feGwT+8kpJFGgCOONRXZ88 iVTrBe0c4G3GiXAf1TNYmAVAnLynPgVdN6i0Yf9OUC7y9KC5egRIV/B0gdsitR6ttb+S yMwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=NnhDJO0PmHi+mL9kXSqbZwEBUP2sDsvykZCqYXQ2yo4=; b=oRn+8dMFa1JJrr59mO36Pt3Y5ijjOOM4GD5fVUprQxAQusIPBXKmzlWg1KSG3WZ4ds vDSqp8j0sJ33Vr+wUqjaf7gPahdX/j9wiO7o5k8+cluXaobH023wFhPzNsHzGUq9m1OX 2PMcPnys3+BoHdsdlAhXrFX2z/AKaAc4gBZ7pyKnmu/JprLgVVrcRhq2dK2igYuk6hMW J5f0NHEgB5bhrC0Ga2mEWE0AEX1oDfMQkrlEDgP2cFb1Xq3ybNsi9hsh6uVJk55nCCAL baQU/TacH5XeLvVQ2vAsoQkK7vF50Fh48wQQRep8k96rU2n075K1/mnmIVxnfu+oT/ZL na6Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id f5si63813ljc.0.2020.11.25.00.06.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Nov 2020 00:06:10 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: eorfhwBe90o14iIv39p3+xrbfoWyLXNovF5BmqgjZPz2Zaz1GtUqyBCnZ1/dPaB22+NLQbMFYJ nuZcR87kZFVm0hmpUkhU31A2td1PNIEs1ChPlwXMGehdUmly/jxi6cxH+Ct8ScNtn7aSUOO9Nl FA4vPKRce5qsWkokzgjG/kyPN02dOeKl5cn783KOPLw+ZWjsNsTectVz9MAomSEJFsXTWZrl3Q JPUuYZp4HW1D0LW/k2YdS9loYk/geYJ86oFSc9CUkxfnJS2/KAvbC2ImnKiGf5u3UsVhpiIUZG G5M= X-IronPort-AV: E=Sophos;i="5.78,368,1599552000"; d="scan'208";a="55587691" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 25 Nov 2020 00:06:09 -0800 IronPort-SDR: OO6tZug48ca++er7+dQAm9twy/S1L5uCe9BW29uAXhgIAWm78SP1P6WBddyLrUxG/m6ApK4RzV gnxds5+9+0/TQmEiU0PCzXFfsD+VI5yGBa3xuoSjUu6L+n3BmGrnZY+b3HpULz8te3ppbVOFF3 whhVaIWGHEKR7GKX09YTVn0mTI4AusOFVjYMCNcccZ3+TeQ+YQsByjGUWp44f5p4ClMXmjXtUH xkcfmLLNJ9g+CCLupnhQpGeqgyohFEEP+q2mmIq+nAiDPn/iNFc7XR9Q5aYRnOweeL13QApa2H wtA= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v7 13/14] rootfs: Handle failures when postprocess is rerun Date: Wed, 25 Nov 2020 13:35:34 +0530 Message-ID: <20201125080535.16223-5-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201125080535.16223-1-Vijaikumar_Kanagarajan@mentor.com> References: <20201125080301.15818-9-Vijaikumar_Kanagarajan@mentor.com> <20201125080535.16223-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1684318790919416650?= X-GMAIL-MSGID: =?utf-8?q?1684318790919416650?= The apt state information in var/lib/apt/lists is cleared as part of postprocessing. This makes apt-get calls in cache_deb_src fail when rerunning the postprocess task. Since we cannot run apt-get update again to refresh the state information, copy the apt state information from the initial bootstrapped image. Signed-off-by: Vijai Kumar K --- meta/classes/rootfs.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass index ed43fb9..bebc0c4 100644 --- a/meta/classes/rootfs.bbclass +++ b/meta/classes/rootfs.bbclass @@ -190,6 +190,10 @@ cache_deb_src() { sudo mv "${ROOTFSDIR}"/etc/resolv.conf "${ROOTFSDIR}"/etc/resolv.conf.isar fi rootfs_install_resolvconf + # Note: ISAR updates the apt state information(apt-get update) only once during bootstrap and + # relies on that through out the build. Copy that state information instead of apt-get update + # which generates a new state from upstream. + sudo cp -Trpn "${BOOTSTRAP_SRC}/var/lib/apt/lists/" "${ROOTFSDIR}/var/lib/apt/lists/" deb_dl_dir_import ${ROOTFSDIR} ${ROOTFS_DISTRO} debsrc_download ${ROOTFSDIR} ${ROOTFS_DISTRO}