From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6899501277566205952 X-Received: by 2002:a17:90a:f3c1:: with SMTP id ha1mr5116435pjb.20.1606415428604; Thu, 26 Nov 2020 10:30:28 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:902:524:: with SMTP id 33ls1327647plf.6.gmail; Thu, 26 Nov 2020 10:30:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJy23cnb8yQXS5AjPtYDCCJJd/jDGMT53pxDKUKTD6HhmOQDgf5kr26RFP/TDbO97o6QDrDa X-Received: by 2002:a17:902:c154:b029:d6:efa5:4ce7 with SMTP id 20-20020a170902c154b02900d6efa54ce7mr3625503plj.73.1606415427871; Thu, 26 Nov 2020 10:30:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606415427; cv=none; d=google.com; s=arc-20160816; b=iboAoKzhH9uQ6+NN4RBXXSY7fixRHm4IWVrJiPSLw7V+0hh8D1DefNgy2LSTsFYtx7 pCP50PObuBZhj+QP75tyNgx9NfwDf0OxRvJIgtXlVRyfwJy25lIQxQtFi2+SFLCol0cA vSBnpO/TNAnrbgmb1LcTGisK5h66h03Nh2WF5c5kXAKKZOEOF6yN/ZFGe083s56ffzsD pXkhcqs36LSRF3dhrWmUEjksbLYWRcX0VqdxWLR4j15mHufiapiwQV3jAiOBQorbW2pn 03krp0tqhEDVrtvP06xguv2Y6n9GBqumUldwJCWv+y1EQtzKpmcJt3ELU4dcQw4OgXBW FJFQ== 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=yB2h2o9k8irIfE9TD4E/7tvw8sBDNdVY2hHVrD34SJw=; b=bmkKlO5INLAevoURFSy6iK2CKFMmrrBuwYpPobwVxnhE26a4Nd+I6zeV12KSvhc9e3 FgKwy96m4TqvsciSQwpA5KK3WKZ0AnXQnZSqmDh2cXof8LgYKD3nKb1V2g30T9foalgN tfMUXqmBIfzrB6hgVXMfsOp6oD1qSJicesplq6JHgvq/nvpRi7xZ4wrL5dlflYbVnUyR 2xfZUPj4OpCP8CJ+QfrLJ+PYfwTBDa5D9AxqKsDiOwUI2BzV+pYTKadWYcDEkShQgIzp +FOyvdhY5f7tkE1pP1YemJPiAml8qq+ud7icYh7gr1u5KGxZs7PONtjwFClY1ZngslZ9 PvLg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com. [68.232.141.98]) by gmr-mx.google.com with ESMTPS id s12si571207pjq.3.2020.11.26.10.30.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2020 10:30:27 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.141.98 as permitted sender) client-ip=68.232.141.98; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com IronPort-SDR: MHSbEsEwrsgG7Y/HnYJFNqrJyPjkzo59xPO8Yt21sRVKz63U7+yx9yXcBqcXsp0R+iSry22Dnd edwi224QNwR/k/YnZOjw76j1UmX2Aws+LpU2I9Mu/hUgvB6EmGv1sLHEKU7XAtEjuxKArWuBOt PmFPm8OlFvNBR7lepHS+nBNcEF1pQrVTn0nFGTESjmSH3+CcQ/ojY1W8XDBQtvLDblPmvSisYq wC/YcyL6IH1FSqi6kKEgnlA7FYtKDb1nJvCl7jYtYo41T29ewZSDF3vq3SWf8eKkrzCkedtFYT s3s= X-IronPort-AV: E=Sophos;i="5.78,372,1599552000"; d="scan'208";a="55536082" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 26 Nov 2020 10:30:27 -0800 IronPort-SDR: ReQQsoWb3vHCWS7uMYUzcRUraO+emlRzcFt0mRYFKUP4pcIAWCiWBCilmddKSKkAj6Cy15jD1s zoPYWMyIK9OdRkGRy3KskMENQOSSGhMeroRn727O3TKCpNoiUGazvBSuGCxjxAq6s3080Zlb3x OJUbZ4HRaIdZnA5TGrTW6dgTp3tfLJFsyRKB5/COWmo7Oqu+xYba/+LCljRARwPDCMA0rk98jj dElVt+vJ4XENVnvb6RCkRnN6oI3KVdhnnT+lkAHLM6VApQge7WV3OFJG3mGxmp5uFTiO9E6nzD 9VU= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v10 13/14] rootfs: Handle failures when postprocess is rerun Date: Thu, 26 Nov 2020 23:59:52 +0530 Message-ID: <20201126182953.7518-5-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201126182953.7518-1-Vijaikumar_Kanagarajan@mentor.com> References: <20201126182818.7261-9-Vijaikumar_Kanagarajan@mentor.com> <20201126182953.7518-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Vijaikumar_Kanagarajan@mentor.com X-ClientProxiedBy: SVR-ORW-MBX-07.mgc.mentorg.com (147.34.90.207) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-TUID: V/tiB33DmE2O 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 99f677b..efed0f6 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