From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6878157486786871296 X-Received: by 2002:a1c:7d10:: with SMTP id y16mr4068293wmc.142.1606311991714; Wed, 25 Nov 2020 05:46:31 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:f70d:: with SMTP id r13ls2844292wrp.1.gmail; Wed, 25 Nov 2020 05:46:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcE8UcTHNua05FYgwIzDRQ4SKa77XuWiAQak/NdFo8/bhO3OX1EeviTIWCtkholMRxJCjt X-Received: by 2002:adf:a198:: with SMTP id u24mr4243084wru.219.1606311990888; Wed, 25 Nov 2020 05:46:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606311990; cv=none; d=google.com; s=arc-20160816; b=GJVyoE2A2eXYOH+X4Qz0lWOEmSAH5eekiARblOVMSgu7azvyGbfnOpt0pvWZgWUKIA FUWfCK7cX9Z38HMZKdoJMOvJskq1OAtaXQz6UHGl1qrXQyezKLkl1TVDCVdG4arN9JsK fHY41609Hcb/og/dq8rPwcn2z4Rl6LfGPVEgebMhDUKZakl0BSpVE72m38bOOD0ww/hK JXuvzfyZnvbWO/+SwWRmHhuv880uwSrP+JlhTT9IrHedNMEAM9DL3PBzv9ZROM25rPS3 dsXoQl5XrYkWhoq59bLbnteD1na+YU57DkNsGVIxpyqU5loMIxorKuoXT6kZ63dN4xke DHVg== 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=qNaIBr5tyBUTVNO/7unLKC0CvOugR3l1Eqs4ADh22ARxXWQpwXXVxG8Z0lwIxX7eum CWLsXmplq1RSPB/+wAkhZdGrsYDj7T2YYCISpXdii0W0llBw7yET46+ShqiAWTvxr6b7 R0RqCLykom+NU2m/vzoe4veBoSk8cxw0h2yDjwGDyfzAar3gJnDY0MbeWpixEwHmDqqq Gh8DxtGxg/fXOuJaxzwPepfjSY9NJbgGYLRVGyfq1R5c9oOW2KSJRtjBTfzXCJKz8x8o UnZ/shEzHXmphdj7lzhbXggPw2Wbiou8DW8RaR5HML6bXTjBI2mqRhuhUakpwxPgm4ha Pgow== 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 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id m5si64609wmc.0.2020.11.25.05.46.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Nov 2020 05:46:30 -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; 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 IronPort-SDR: U7chLFthAzKCfi5sIB5fgBXWb7xTKYkP03ROiIPNRTpH4Bhzd3aRfIVGx4ezhfPM8l5VfLaDqc +FfooVpxQktlXD2fZIwjVoDOn37rizyGo0pcnFKanIXIX/RX3QYSBzR8CxT/ZBC3ypTWz54Nty Fex8y7bF7yHoERRMu8z8H6L1L+Sany6fXM9lL1LkocKd6VQ+tBgjazloLxyF05WdddDK6oGYjn TCyOZlmM5cpl3tgO2CHIx3G6rqOVm/e6uBAGD4/8IV4GCoexG7zVooICRloKf9Ez5/pyOBcAOi W2I= X-IronPort-AV: E=Sophos;i="5.78,368,1599552000"; d="scan'208";a="55597809" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 25 Nov 2020 05:46:29 -0800 IronPort-SDR: myLVuZ5N+ntKYTWE95lf29vpyf7eA5qWYWctVv++XtMrys+MuK9/xVb/mGONcxWILmmCqw0as4 cOkl4Y1MilJJcmk4IsNsX9/UJ3BTovTENqTZ150r8FCDxTqgeJKCIqmvMhrj7Z6V+GKtqLrhzh WWaM6JUZoKyMFhtq7/zheEID5eFkDRsmIEvcGzdX+zszyKYTpvWF3nBSM5AZDJmQ7smE5kylsi b8/ookoC10qT70HfTGMK719VueF1bQZVKNV1vrUpLP7hNvVQ27D7hURaqf459vSU2Lp7519z1S d4w= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v8 13/14] rootfs: Handle failures when postprocess is rerun Date: Wed, 25 Nov 2020 19:15:57 +0530 Message-ID: <20201125134558.26246-4-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201125134558.26246-1-Vijaikumar_Kanagarajan@mentor.com> References: <20201125134414.26061-5-Vijaikumar_Kanagarajan@mentor.com> <20201125134558.26246-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Vijaikumar_Kanagarajan@mentor.com X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-TUID: VoVDKQBZGECD 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} -- 2.17.1