From patchwork Mon Aug 7 16:35:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: venkata.pyla@toshiba-tsip.com X-Patchwork-Id: 3004 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 07 Aug 2023 18:35:28 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-oa1-f58.google.com (mail-oa1-f58.google.com [209.85.160.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 377GZRrE024444 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 7 Aug 2023 18:35:27 +0200 Received: by mail-oa1-f58.google.com with SMTP id 586e51a60fabf-1bb52b94b4esf7535041fac.1 for ; Mon, 07 Aug 2023 09:35:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691426121; cv=pass; d=google.com; s=arc-20160816; b=yi1IUKzCAmpMBJa9PnpPU+qDbH9rplX1Umc/FzBCzFIAtwA4uvGoaB+PB7lLNMyF+v VqZfebqAaceTAv2uUCzoMbzF9fVCe3uTCbeA1EwEXaUslXy0Z9W8z5qR0q3UxMOoa194 KZQFob+ac0AXgtHU3dygsizIgTGDNW5A4Vi/KC/TiNcd9cVQTl1dT4xAN1F505WxzfmE GTF5DSuGCB0Yv0q9L0pO7AF1kmeJ6QypGdwH+XURuPeGAhcnG1aoUfBpDhKujx3xTVgZ te1iICCKwMUxvEsljGMt45//P8fBIhAJ5TiLZVFMkAj68xazr9+RIPO7SJcD0zVTkRbq HMVA== 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:sender:dkim-signature; bh=FBeiKCZEPkxXRz6aKhg8BuDDEjvq7ovyy66radGKANs=; fh=hlQ1hqgSDSxcad+9UnP3cyIZQ+ntmWHvDnmuU2CG/MQ=; b=FL3As0tF6U4BNndD2GrUqncovtz7CtFdXAeleuNrETjoNdn7HWdAuTY7DqDQqUg5Ik 3d2oZq0yTrK1N2Gr4Oq7nzLak8MlapXVr0bTMXgAJmhBVMV3VIG8OiDDxL4PN4W7s4xF RwcYgew8enpqMj5gs45NpNwQs3a8Z/ii3yn81YFBUJWfTlNPHPCUsu4hnQNE01BVQknh 0ZeuGvyrHwgcWbjZcVlfhZ2cvQOule4VzUn+h76UNAq2UjNKT7TaS7sFfcWwgeWItrvg AabvnEP7Ky/zTN23G8XQvWOEmmJAb5wKCWPMVAomsD/RgJGRqLv1eyJIz2/+/HP8dZVl Bgxw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.132 as permitted sender) smtp.mailfrom=venkata.pyla@toshiba-tsip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1691426121; x=1692030921; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=FBeiKCZEPkxXRz6aKhg8BuDDEjvq7ovyy66radGKANs=; b=UIOFQ4ZIzqLjZ1rQJEsTbmhG4OfvbZjJ/cdVDgqPV5puqJAhHeX5QTdgF46CBXo9/Z RxmUuHFR0FeyTjILez442RSYPbjxzJxETM5HeZBJOUOx9vCAZiCEL77rYF/H8msZ++pt AhhmYOHV3v2HhJe7ubxT4NjBMiBFwu+hwHKl/6daPGkOUUwQMlOxCHcQUbePAS65J8G6 pIpWxlZXBlCJMa1zveIuWoh13ivUYGrkBD3bYS6fspFhO6+MH5yQDRbZX79zTzA/mwx4 OPJ1tS97CY9TT+uRBAC9wqC2bwOMKyG7dRT3Gswl0ekHIlrsRvliibsxsZpjPxowS4mT 5KVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691426121; x=1692030921; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=FBeiKCZEPkxXRz6aKhg8BuDDEjvq7ovyy66radGKANs=; b=CtB/4rXXjxmuk7sO9aRjXOWddYq2yDo4FGz4tOTXQvyJ2Gqbgvm2ycJo0IKvzazbR7 rs8KVaG5+aWvZVSr2k23a2BsPxkFtHtacohmmSMZtdRRIXT8MtW37KJW0wR9D/RzUfrv jVo/QLuP/3vwK1uBSY0i5kxTzneBwVxrXEMKDrDVpajyMeMv1o/zQ3s94D7bTttDaypM Z9Q+fesskmhzqfKhDUa6Nmc72Edyl12/ymugG+uWK44vPPB1AD7BSDqjlfJinWsCZRUR HA26mjZI9thb/7V/n9b1TFRq+PC/CuomFwn/xIwyB6Ob4i2rPjqzUPDxO9HkCA4wePEY zg/g== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yy5kdgEwiKDdt8BQlFFaXF+/L/w9dwSsBAnRbnfYXqYTR/21jwM N3zXzdIJt1+YEsHgmlqKyxQ= X-Google-Smtp-Source: AGHT+IGQ1bPRyNdT0lO+ls2ZHFiU4dJMvSV+1gxswVS79SHq2X2SwZSmCQ+bekcqxP3LaIvzpCj3fg== X-Received: by 2002:a05:6870:ecac:b0:1b7:2edd:df6d with SMTP id eo44-20020a056870ecac00b001b72edddf6dmr11390670oab.10.1691426121421; Mon, 07 Aug 2023 09:35:21 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6870:5608:b0:19f:9f28:a580 with SMTP id m8-20020a056870560800b0019f9f28a580ls264769oao.1.-pod-prod-05-us; Mon, 07 Aug 2023 09:35:20 -0700 (PDT) X-Received: by 2002:a05:6808:13d2:b0:3a7:37ca:7dc1 with SMTP id d18-20020a05680813d200b003a737ca7dc1mr12573233oiw.55.1691426120779; Mon, 07 Aug 2023 09:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691426120; cv=none; d=google.com; s=arc-20160816; b=JlZBvBMflskYhSN1NlskUZCtOjQWztAFChiXYKS6rm8CKdphbe7+F1t/15pe8iRgn4 Zoc/RJgePCkvqOu2RbQ6GTMUGkq+VWzfsobNqM5dj3RRSyGFqoJVgAf2Xzx1I3tQnNV8 CYzKoLGzc2Iwk1Hvu7aU8SXbdFERFPFq1YpFMefJdqxEBaplqqg9TbhSmEYDzbLikOm3 Ma0jV7qTyHYI1fjNeMe2hMXrWkrvU4swsLEXGb+9/HjTSk2Sw3xsrY5buZP1jSnTGZVE bTI1SzY0NAMeM7Uo+tv9ccB1rQJIgJPakSOW6r/zAi+BAgkBTJJMNuHlA6PpdW1g+Ybh ImGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=tD7Rhb0cmnf/Vt4tMfSAsG8gGu4NrD+TAMkqJWMuYe0=; fh=hlQ1hqgSDSxcad+9UnP3cyIZQ+ntmWHvDnmuU2CG/MQ=; b=yW3yh3TYLEcd/QPYCoxj6mKb5I+YLLQeEHnwGm6D1AdnYYSnuJJIoe0OivBbRKSBdY MWd1BaJxv398l3YqYSjpRW54kckIYiy36QkKxCZsKKk5cjwbgvXlPVRf33g+JasfzNzY fOHTH0F1nD5wTzEHL5FtD3tT0j+zj0TucQsSpBZZCNLQbzue18HtqGhwaFvQ9WHBd6Tf qx9VmcldSefC0yi8Qah2tYDG1m3HYwksKuj7ViOVzFJh/YUoIQF76ODb+UQmsTP/y711 jBy3OpU71E2AAbeCqcfjXcD2605/A9qHNDTeweQC0vn8mQIlGXoojVb3ujSEZ0JLXxkr ZsSg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.132 as permitted sender) smtp.mailfrom=venkata.pyla@toshiba-tsip.com Received: from mo-csw.securemx.jp (mo-csw1121.securemx.jp. [210.130.202.132]) by gmr-mx.google.com with ESMTPS id da11-20020a05690c0d8b00b005845e7da91csi1082696ywb.0.2023.08.07.09.35.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 09:35:20 -0700 (PDT) Received-SPF: pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.132 as permitted sender) client-ip=210.130.202.132; Received: by mo-csw.securemx.jp (mx-mo-csw1121) id 377GZGr42038158; Tue, 8 Aug 2023 01:35:17 +0900 X-Iguazu-Qid: 2rWh1qS80VARiqiAa1 X-Iguazu-QSIG: v=2; s=0; t=1691426116; q=2rWh1qS80VARiqiAa1; m=58gYli28X7uF7AaRQxEIz7hzh7iiHbQbJSLAoSN/lFM= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1120) id 377GZFfD2696174 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 8 Aug 2023 01:35:16 +0900 From: venkata.pyla@toshiba-tsip.com To: isar-users@googlegroups.com Cc: venkata pyla , amikan@ilbers.de, jan.kiszka@siemens.com, kazuhiro3.hayashi@toshiba.co.jp, dinesh.kumar@toshiba-tsip.com, felix.moessbauer@siemens.com Subject: [PATCH 1/2] rootfs.bbclass: clean blkid cache files from rootfs Date: Mon, 7 Aug 2023 22:05:11 +0530 X-TSB-HOP2: ON Message-Id: <20230807163512.19570-2-venkata.pyla@toshiba-tsip.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230807163512.19570-1-venkata.pyla@toshiba-tsip.com> References: <20230807163512.19570-1-venkata.pyla@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 07 Aug 2023 16:35:13.0070 (UTC) FILETIME=[2393E4E0:01D9C94D] X-Original-Sender: venkata.pyla@toshiba-tsip.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.132 as permitted sender) smtp.mailfrom=venkata.pyla@toshiba-tsip.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-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: venkata pyla Sometimes `blkid` generates cached files `/run/blkid/blkdid.tab*`, these cache files are not reproducible and not necessary in the final image, so remove them to achieve reproducible builds. Signed-off-by: venkata pyla Signed-off-by: venkata pyla Signed-off-by: venkata pyla --- meta/classes/rootfs.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass index 22449d71..5d493ea2 100644 --- a/meta/classes/rootfs.bbclass +++ b/meta/classes/rootfs.bbclass @@ -293,6 +293,12 @@ rootfs_export_dpkg_status() { '${ROOTFS_DPKGSTATUS_DEPLOY_DIR}'/'${ROOTFS_PACKAGE_SUFFIX}'.dpkg_status } +ROOTFS_POSTPROCESS_COMMAND += "rootfs_postprocess_clean_blkid_cache" +rootfs_postprocess_clean_blkid_cache() { + # blkid generates cache file which are not reproducible + sudo rm -rf "${ROOTFSDIR}/run/blkid/blkid.tab"* +} + do_rootfs_postprocess[vardeps] = "${ROOTFS_POSTPROCESS_COMMAND}" do_rootfs_postprocess[network] = "${TASK_USE_SUDO}" python do_rootfs_postprocess() {