From patchwork Mon Aug 7 16:35:12 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: 3005 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:29 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-yb1-f183.google.com (mail-yb1-f183.google.com [209.85.219.183]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 377GZRiX024452 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 7 Aug 2023 18:35:28 +0200 Received: by mail-yb1-f183.google.com with SMTP id 3f1490d57ef6-d4e1be2dd10sf2461267276.0 for ; Mon, 07 Aug 2023 09:35:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691426122; cv=pass; d=google.com; s=arc-20160816; b=XAkwKNdjo6xxnqpAf95+q8JQrvTtIitnM42gvthKmpZQ6FiTT+mZlU9WRfo8jltmyG 3bGDuL7UKF5jPCHWAdTtjL+aCEk/WA2olGPbFeCMPSNN4X2usofmQWzKbm99SORXQW5n YEMjve62rKHR74tUljjSKPR4r0nh7qJxUOtU27/QhH60QxkG3ldmK5bEHzaBuynCMqt9 9XVXXwemwIKrGncONF+31ANoflsdyXT3xMkxTRqBIW6I3YIBMbT2JjH6a1nM728cHRB4 tCrN5gQ7xErdVf+m00wJClcefNZ0ZR4C0qJwXPGVmqTeIzRQibnPD5/lx5Cs8EtAWy+o YDZw== 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=HY0JrWpo2un9hO3/6GEM68rakbKv0ZlzIbZQxG4DRgg=; fh=hlQ1hqgSDSxcad+9UnP3cyIZQ+ntmWHvDnmuU2CG/MQ=; b=IKz1Ab7EIohDhXP/3dmAdv7ZKpxxw6aYWYD6O7YE2g1eBq3B2Wcb4fFVqcvV2eYri4 lpcCKKkw46PaerCersQleznBBkci9f7lRr+nAHr/qXGnfn0d0rVw1hyaloFb08yTn1O6 l2HF+/BIWs2JAxMhrwny2RwCmxeZP1qZpNymXmQUqX9ciGh9uJapKI/a282dHqSouLYl wE6c9ANvepUVnwjPcluIS2MeAZK2kJ2ecIy/gGEdkVh6BGGqy77ThCaicxd9pwPrYTfP coPEayJxt6ksXhwmDpnZQDBqWb3COF9+a+/pHVMvnYMwEvU72erBf2jEwvzZzrleoL6n ZlmQ== 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=1691426122; x=1692030922; 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=HY0JrWpo2un9hO3/6GEM68rakbKv0ZlzIbZQxG4DRgg=; b=JlhxKDV+zpFktHh4qdKxFgdauKvxhGed9P5KYT03fAuGjagcyOFGNpR/mP78lBn1Vt s08koVs7AvEEUYO9QX2YLQxWJhZ044O2JJt5WReQ66LxjeCtMZ1sfbfIZ7d1Kpl7kEQb qIYYY0kSMRbpcf0Cyr385S1S3OeA1ZC0eTbgkxsRFjeL6N6Vh4RFiAOfv308+33Lz8d5 J2hiXv+LzAzk7PdM3C9a83Fe7EfZHD89NkB+yBhp6W3B8IglFPVZB3mjFo8/BxpcxFRI rDAhXA7b6rNyEo+XjAJsg6gVq86oOqckVeFr0Sxx9v4lakF4yAgykRf30Ul35O7fUOdD W5Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691426122; x=1692030922; 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=HY0JrWpo2un9hO3/6GEM68rakbKv0ZlzIbZQxG4DRgg=; b=jpjqzgbE/ComI2NZ6LAJB1cBBsCxb/QKo7ALoJSJwgIAuUwRcv2xp0psuN9TS0n8LW Z4ssyg32n/I0b1wQqT/XdpVAB0BKpBByJjTBwcln2FhwFRHZ2P3urYbmAqtULB5Ktmeg J/2nYX3BLqk8k+sR3+s+G6Qmjkgf4Rb9E3hzXbtc5eT4vvHf8fwtswE8dvCPmGnxcre3 fh28PSpCiwQJUqEdTf0DBp78sunOicEVLT6Cs1aAa/jp8zuoPHdTsJA+iFX7B/lZP+Te 4wGu+O464kEJyf+n/hqMQMoLDUzsckKSInf8QfCmBhk8zRp8buEThTacttuRFk4JLEnt XqrA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yx6pV5IfKq5rVWAQDLEjVtMBakdoFBNpQXABASFPjFmih8vgKX3 zP9AQm6QKhDYwWNN+oymnr4= X-Google-Smtp-Source: AGHT+IFsV4Xgc1U+23PQWp910c5X1CmsE4o8EGNSRjlxa+RvtmKGPONyX7k6G6yaBYhKiiH6LRrloQ== X-Received: by 2002:a5b:912:0:b0:cf7:770:229f with SMTP id a18-20020a5b0912000000b00cf70770229fmr9922504ybq.46.1691426121708; Mon, 07 Aug 2023 09:35:21 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6902:1109:b0:d3d:74b6:e05b with SMTP id o9-20020a056902110900b00d3d74b6e05bls1911417ybu.1.-pod-prod-03-us; Mon, 07 Aug 2023 09:35:20 -0700 (PDT) X-Received: by 2002:a0d:cec6:0:b0:583:d0c3:9ae1 with SMTP id q189-20020a0dcec6000000b00583d0c39ae1mr11883030ywd.51.1691426120768; 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=mF1/e1BMJvtm54vlxbnlKFMAcohSnd3iA07+WS2xuLY4FydFWXf+MnrR0Hx/816Jj8 tC+0POus3nvhGPT5nX2MJNAMRuxg4+0bspFrjiUQ1IU1OEAljI/WH43b75lEoI1mKQ5R 1TuoeGmba4/0p1YcZ/LyOCw4Ru+9pilrLYN7PtOiO/YJ53aauQ7fiQEfm52P9vf+gxnd UbPMKI9giargJXnwX+ar6VvqXyVYsq5aiVgzgLHc500JBJ/B5dalwefAlXq7rApEiwTV swyRmzTtYR8JpkFN2G+cXAaAWa/b8kly4dTwyyh1iwQ6FL0lLqFkPs9W5nG13+qwjijX xq5A== 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=YJBnGxv7umxlFXk3LuMeyZz7h8/IAVRLWJeMwv8Iyog=; fh=hlQ1hqgSDSxcad+9UnP3cyIZQ+ntmWHvDnmuU2CG/MQ=; b=WME0TgrDLd3hVAQNCTbiEgomMTpFwIBvFtkUE+4nxDvPW8eyHFw2s/hbqsu2Qrkbiz HC6y/KfzsyEWUdNMyAMBAzWXbY71QiusmTfeea7/ij5cyi82RG1ZS/BfXWfawDt0uOL7 5uIj6UatHVp9O7N8nYyL96mo8rQGTcaYpGxnj1iY9fPm91ohqAgkYWVcF5F9uv7dmBHt kXcHxPniQtgtkwrlKYK1QmZ5G3HxKbanRZH3vlFLl3YSNxhRWSPB97hueqoCtVKzs2/0 R6WzjOx1pmxsoyGLBddGdSoIQZHzaBc29vZpMhu8uF7my0LTbl7gePKeWsZ5L7Ta8/AA 0kGg== 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 fl16-20020a05690c339000b00586a5c739fesi1107163ywb.4.2023.08.07.09.35.20 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 377GZHaE2038195; Tue, 8 Aug 2023 01:35:17 +0900 X-Iguazu-Qid: 2rWhW3wiP5XQKn5mzK X-Iguazu-QSIG: v=2; s=0; t=1691426117; q=2rWhW3wiP5XQKn5mzK; m=w8Ngu4Ux/Oz/Kooyr3sszyOsarv6MNyAPo+Kets/r/c= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1122) id 377GZGc02273315 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 8 Aug 2023 01:35:17 +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 2/2] image.bbclass: remove core files generated in rootfs Date: Mon, 7 Aug 2023 22:05:12 +0530 X-TSB-HOP2: ON Message-Id: <20230807163512.19570-3-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.0149 (UTC) FILETIME=[239FF2D0: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.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 core dumps are created in rootfs and left in the final image, and that results into non-reproducible images, so move those files to ${WORKDIR}/temp location and warn the user. In armhf there is an issue with qemu-user-static that results in creating core dumps which is reported in Debian upstream [1], meanwhile move these core dumps outside the rootfs. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040981 Signed-off-by: venkata pyla --- meta/classes/image.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 08b6d3d6..80509d0d 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -461,6 +461,12 @@ do_rootfs_finalize() { fi EOSUDO + # Move core dump files generated in rootfs to temp folder in workdir. + for f in ${ROOTFSDIR}/*.core; do + sudo mv "${f}" "${WORKDIR}/temp/" + bbwarn "found core dump in rootfs, moved it to ${WORKDIR}/temp/" + done + # Set same time-stamps to the newly generated file/folders in the # rootfs image for the purpose of reproducible builds. if [ -n "${SOURCE_DATE_EPOCH}" ]; then