From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6878157486786871296 X-Received: by 2002:a17:90a:5292:: with SMTP id w18mr1210832pjh.72.1601446906573; Tue, 29 Sep 2020 23:21:46 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:902:9007:: with SMTP id a7ls473251plp.2.gmail; Tue, 29 Sep 2020 23:21:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjddq5MXhJvnRTVoLrJIBYpxXkxNWWeUFAxtZgamWbeUx9OBn/gRWkvrFFTOHeAUW+slLt X-Received: by 2002:a17:90a:d304:: with SMTP id p4mr1230285pju.138.1601446905892; Tue, 29 Sep 2020 23:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601446905; cv=none; d=google.com; s=arc-20160816; b=aE2zhQTqh7xMASo4BjKsYS+8pG+Jjj/3bNODTAebzThLJn6IlkZ8HzmlB+YpV5qIu+ 6dV0gnP7nWgShKioL23uAw+/VHtW8ynoruzciyqnYUqV6PG67DfGqQFE0cW5nM7/egGE ozq6lLzsQcpUmZ/jML92Ghn0kuWNX39quPHrZ8nkpsJRpPmtJu5CB6JxXKAao7sAorDN TE4M2LYx7QUctykVyE1L4zpQkyGtY9d1ZGppd9OkByxwREX5lsM6hmzmjO5LrOfSkj6a MnUsDHHGgzKaZo3Fjp5YodzMF8y0pngH/0Y6fg1Az8fPVFt1B07CvsTDgMPSsaSjVKXP oQ0w== 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=CFii+Dwj5Cbhbs1K9mj2MYSLDzvsVrpYTDz7DZyjA7TuahWGczhrhb0QNiJF0xiU02 SUlmbiiFoHx+ytCNctVrpAdcQ+PNcYcofo8S/K0DxfQdu7Pp++b/CEND47JZctujQiTi ipz2QBX96BUajoYGDMiBPvmAC2kdn6lmZuVRNvE2Toj4+t2QVGmmXI1q/HVvj7vu5uE6 Rkk9e/zbeXi3mNZlcvz+h5tqY87Zn+9goZWbv1npP3cCQ7bZg1xp+13St/yuCaYSSo8H 1wo2ABBnU9jF1PWoHElrE+QhUk8uaweMBsYe0+RKjaJVSJsCW7fjiCPA8GMq7nzA5ul2 81uQ== 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 q125si62046pfc.2.2020.09.29.23.21.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2020 23:21:45 -0700 (PDT) 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: SfxZi4w7VTIke4hjZM6v6PCoONz+k5MLUBumOWQ+vbx1i28ABdpih9z++y1eiEz3HQ1C7wJykk raMtZkbyhUwSCH0CrXpaYUDh8zTpP5sVGhj3zPF56wxhqLFh6JD1ehUHob6nujR81ImGJVndh5 wvVmpMjW5TmhNUC+Wtu//z/DnW6k3n6kctNIIvh9wgpI6s/SoABVLBhOi04veA69qllIS6XTGP T7gKKeS7qFRob+lt6KCIOJowZhjFxY1qF8qxCxeQZWOHfcsAR/PQf7nZ34/Pam914Jz6xJh2pL QJs= X-IronPort-AV: E=Sophos;i="5.77,321,1596528000"; d="scan'208";a="53462619" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 29 Sep 2020 22:21:45 -0800 IronPort-SDR: DhHj2d1t0XyYhJwIQVgM7MZTa1S7EmPN74pl/MncZS89DonhwFpgzY1b+kGPPG0X2KLJJEm7nD 9vfUzbZ/LAMxy1I0rsQrsV6cFEjOqNDW25KyBA7DEuz1XD3ebIjL/t5t31s2/vDf/1K6bHO6gT 5C+QUOMUqVHPfJuSlPH+oG91jeJlaS10posh4xU0UWJ2L+xSn++Tp1q5vy5P5aCGh0R+cTMrkY ps8MMNwh5fTeHKc7Ff6u4egnky8sdMA8XXUuxg0O1sbC72Aq2owePFBVq15ICs6UFmbWFAWLei fBo= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v6 13/13] rootfs: Handle failures when postprocess is rerun Date: Wed, 30 Sep 2020 11:51:24 +0530 Message-ID: <20200930062124.13578-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200930061833.13347-4-Vijaikumar_Kanagarajan@mentor.com> References: <20200930061833.13347-4-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Vijaikumar_Kanagarajan@mentor.com X-ClientProxiedBy: SVR-ORW-MBX-06.mgc.mentorg.com (147.34.90.206) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-TUID: SdSeF2bKdwTk 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