From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6899390751905415168 X-Received: by 2002:a37:d2c7:: with SMTP id f190mr851234qkj.128.1606389705059; Thu, 26 Nov 2020 03:21:45 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a37:a493:: with SMTP id n141ls905494qke.8.gmail; Thu, 26 Nov 2020 03:21:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbEaCb4vTsnY55gx2cTSwC4kqXQfNIiWFcgzFoPLT9vJ5Ac+sdoAr3K0CmN8flkHd+zlHk X-Received: by 2002:a05:620a:790:: with SMTP id 16mr2604679qka.169.1606389704637; Thu, 26 Nov 2020 03:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606389704; cv=none; d=google.com; s=arc-20160816; b=H8/2swzwGpvmoAfs27FmU/RWoBwWDWhnv3HorQLa3X53Xa48kJ4rduUDnLqPlqXDxA D8AIAg2dW9tGUsSD8Ipw5Os6ELiuW0TUFPujrdG43gIX2arSL8vdPq/ElCt7FeXMxUDf nh7wRhTfCqdc79O2rfOL19frtcmrZNpOFynbUIrZJjMEhrLn706hGwOeHavK4rwDRre/ xZLgWCbcyBCRHq2PkZCdQmo3ZySBTYvQ6sOY7FJqk3VZ9flsvaLK6JpiBFJTQDf/mw+6 /Wg5EpAl3i0CURes68CZKRHw2HVeuA8w0GXlpaU6TSWIIBlDvyHYGq0OV7FokIXDxkED kNTw== 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=Q48lo71cSZCriedaNwtn8N76N/U2GGAeSpoWv8edEFg=; b=tuXXmMgRhWxOqiFdCJ7pxtCU1yV6gWv297pwvf2JLhC7vs1K6RXLqdIF76kKeN2AHI VJ3gpNuZL8p0FVgbVdYMJ5yFBWcjIgERl1R6aG0EkgKrylMHhVle7xs43ls5ygXOTXBq qFXUeTErkcUOE/V9FlW6zF4ByY5XfDDvKIOhjG4n42vdJkChpqXEzRVUDiRuO6lPpqop f5ZZB9x92wPc+R3jb9l4qif2sOFICyCcFkwc6vK1hU7ieDCaSMSx5ilTynSOy3qlKP3g sbcSNQN5yGiv8CHuia4XVRJcBIUGBqdzEMVZIRKb2gg81eIKqshvkmoEs8h8vIE27Qsz KVzA== 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 f21si113872qtx.5.2020.11.26.03.21.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2020 03:21:44 -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: K2a7DTJkJu+vAdcP4EmhYVF56OfZTwaWEn64gpvQRiaygGLte4Lg4CqvVXiwwTN1B5Q1ZvRXS7 w6C8o6VLzUCt2FgYeiS05ZgV2Mb9nOIEppqbbNF5kCj8YEY6NrvDGvyXruMVud7gAszE1RZSIF 3974shqdEhKGp48MJEcTq6W7x0uWGz97HkK55XEhp2L/AzRCpijRo6xMKOULBD85pSx54hq8ve icsxbiTP6rBlnDIuFAR9DoMr5aj/r7TKE6eWe9bjIJrRnKMu3tGgslSfQgI2QfcROcInT8psX8 sz0= X-IronPort-AV: E=Sophos;i="5.78,371,1599552000"; d="scan'208";a="55523590" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 26 Nov 2020 03:21:44 -0800 IronPort-SDR: IQdwUck33O0lbu+4u2lmFPyS9woRkFs1xOOMHu/7HWQtqZdhmzGmMlfGPCPj2nsjt2yBVc5G5K /Df1xFoyG0aqba5u1LQY32a7/AAeenIWblDXvBVeZI2c7/TB3eHZ7gfOXaYJSi3UuAWJEdwFgE FJ4cAVGd14uddSQLMpfT3b1BMBuM34JOBABeiaGCwzD0e5VNrKM6JleKYG+q4hKFHgKIrOlqoz C3+/yPrPGjNahsKOyoOpSVxWfSJ0/c8Qnje8GN/B9GmXMVv+2rpHEjbRO5EJKFYn2ljQm6HgLc cHE= From: Vijai Kumar K To: , CC: Vijai Kumar K Subject: [PATCH v9 13/14] rootfs: Handle failures when postprocess is rerun Date: Thu, 26 Nov 2020 16:51:07 +0530 Message-ID: <20201126112108.3320-5-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201126112108.3320-1-Vijaikumar_Kanagarajan@mentor.com> References: <20201126111912.3037-9-Vijaikumar_Kanagarajan@mentor.com> <20201126112108.3320-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Vijaikumar_Kanagarajan@mentor.com X-ClientProxiedBy: SVR-ORW-MBX-05.mgc.mentorg.com (147.34.90.205) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-TUID: xkAO+033Q04T 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 b6dc2c8..f7ba4c8 100644 --- a/meta/classes/rootfs.bbclass +++ b/meta/classes/rootfs.bbclass @@ -189,6 +189,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