From patchwork Wed Mar 6 06:14:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adithya Balakumar X-Patchwork-Id: 3381 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 06 Mar 2024 07:14:13 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pj1-f60.google.com (mail-pj1-f60.google.com [209.85.216.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4266EBAS006613 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 6 Mar 2024 07:14:12 +0100 Received: by mail-pj1-f60.google.com with SMTP id 98e67ed59e1d1-29988382913sf4225253a91.1 for ; Tue, 05 Mar 2024 22:14:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709705646; cv=pass; d=google.com; s=arc-20160816; b=Zpw47vCuh0PpP6T9kAvjMOKB2IT25uad/ddW2RheI3ykICGAhiThpzzt9ieQj3HDHo 3ttkNjYmiBN8QIFTQgq2wiCIbZWF6pw1ZwMSccoajyPcN7KiOHZbZos8kvj8v8JbeD9m DrAn/8MWsd1kHLzoHNeT3DPrNY2sCFlhV2Hdek2L5K3P0dhxp+gM1isF8fDvrTpBiFqg SNZsS1pICWvG9EGew+5Rqthrg9Yw7zVIXONpVa3swUCQaVpTTM93WmfZ/stvi+WvbG7Y D0SY5SacxNB/SZ4bUGuXG8vGa+ZQKSn5oUn2eR40W13w/k+mDAPOLObWJ9A9J71B85sg /xtg== 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=EnNgEpVTIfxRSmurE30rvvblqa5OMGYMIiji9fEkhVA=; fh=NGEVmuGCsZMnGHdXr4KJWUx8oiea9uCWajgwMn35PFg=; b=kkl56DkAbd24fL9ywRXRZJIuQitv8p5Jc0++y3Er2jIFWqwDeq/8HYNgOT2+t7wRYs R32l78Nfj8UZKQSBGusMcLDqDzjBvr56DNhKzrWqkVvtRgicjKAeYm2oMWhuFd42iw0I 4yoxMkGXG7u0xUlGgp9arVP8MYv31g9SGC/fj2CkcYeeguNLr+92p5FTKTQpNRxS/rM9 4bFY2gQ7fgKfag6/U1oCdvtApkCcoIkRlQ2cU02JxCE5/4esasojfIYEocxrOLfbXqkC 80Ag4+5bmHcRp5aAGprWmm/GV74vMPvnanu6g19jlb/vYZp9JQlw/wXhRiMfa36lW6Fe bM/A==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1709705646; x=1710310446; darn=isar-build.org; 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=EnNgEpVTIfxRSmurE30rvvblqa5OMGYMIiji9fEkhVA=; b=cGCTveLIGxH/yHgLeWFROuCKszwwyzH5/RoPQjaY4ag0bKVy4B0ufaha6hL+CI07zK s55FMOYwCSUz4fRm1v+MGg8xdBdLe4dH6+c+DQbi+Ckm8mXAonKJCDtYzA/mAhWV1JeM bA78sVwqqr6h29yGGCym5rKowksIkmEvGgqwaMkZFbHhHYUmy1vFwdHaV0PYLP3ZTIsY ZxJ6N0hatpe0pa7dbngsp7BE0491CTBbbLm+ahffRCA60rFho/sCHA4DNWoTAkavad8e aRjMeldh4fQQqVHX49mKXI/FAM+mirqzHgmqwxX1LmFu5X3MLYQ1MOoCthwHGiK0Z7r1 XMbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709705646; x=1710310446; 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=EnNgEpVTIfxRSmurE30rvvblqa5OMGYMIiji9fEkhVA=; b=IDyk0zs9jHjiIzrunKicBLtz8aY5p+RGOS7w95PPGQvBj85HVLDAreQ+7cfDASIbRt JCCnxXVfOSIFvq/z/AGENhGPCCzINhKcw5ANmPsvzr/VWjBP2yrxIvwR3ny2xCJ+rMPT j/EurYgJV1siBN/IQnQhjEiiq7VTjqjpTw7pnq/zReZykG1aVIrsSIwqWhYRRY703Jkj 10iW+uiMXtHv3ET4u4NrDvdAth8UOQfArSdH8J1ZufAiQUD2D4gYWCT321uOzSStKSzW Hwya7fhK0db7NPL/xcUC68mi3SKQwwftKACF7zYOcmftCrM+IqQgi+l6E2ZqdMw1DWJ3 HjJQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVuFJ0xNxHBJOM3VVV2oSGQsU74hxGz8mGaRp26yEGrufbB6Z5nKLwY0RT0vmvhKe5TraS5JVJCKFnNTmPKMAAS+GY94+o= X-Gm-Message-State: AOJu0YyyFB+4vPfOOzbak09h+9bevcjmR3iCF0EaBWAgP5sb6mYp09Ln 6F/C7Vv0MSwUkFNm1g8WSfdAIbsQaD6k0mS8Aer8W7Pf9gxbDAx7 X-Google-Smtp-Source: AGHT+IErxzndnM8pl1Zx9APgzDW5VjKiZtwhHB9U4e2BjWryyXLwdBaD25sH0bpAZvGHgHc2vdkuKw== X-Received: by 2002:a05:6a20:8401:b0:1a0:a438:f161 with SMTP id c1-20020a056a20840100b001a0a438f161mr4381316pzd.25.1709705645791; Tue, 05 Mar 2024 22:14:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:d812:b0:29b:5c2e:d673 with SMTP id a18-20020a17090ad81200b0029b5c2ed673ls892384pjv.2.-pod-prod-01-us; Tue, 05 Mar 2024 22:14:05 -0800 (PST) X-Received: by 2002:a17:90a:5986:b0:29a:e05f:3f55 with SMTP id l6-20020a17090a598600b0029ae05f3f55mr10969043pji.2.1709705644824; Tue, 05 Mar 2024 22:14:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709705644; cv=none; d=google.com; s=arc-20160816; b=UQSTweN3BDx5krvxCThWTqwanv4HH3N8YX82Tg02kq0xORedmfIY/bunmrt4XOK07s FfuHJ3vt2MR4KFCBvb04G7yytrsYAH+bMBSNveEIWhWwvt0mmzEdcGbc8p8Mh4IykWGm fhCvvL/hdS9ImdzhWHW9TdxiN54dE55NHpFkT+DkDHr1i82vIPBwUiXVQ/M2TwWNJGvx bD4RvB5Ao4EmQakTHQ7HoNqDgjR+A3A2/+f7DlhkfArpABAAtqWqtEbPiNlbUwoMvUqo LivtotfjGzFZahRgi37h+draL0MHh5A1exlDvsAkiaz/UFx1oHbt8NtPrsdh9SpKhwmK QOsw== 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=U6g6rl1zNzW96g9COv0nxqL+Y8QlBvkuqYhnx9corzo=; fh=K/mZt3pelG5XhoKo7NmnVKDkBr0U6QSPt5Hs4miWPTI=; b=biBg6BlRssR9F5q7GZzSgABzuT7aDa3ziixRCaxSg1oiF/rguJgy38uLtKaFOLz3rN zFjdbMJVbHacNtfp427Ec/IqPme62sIa1r81f8UPJ58jeaMbf5llzFyR01IfXCzpYEDj Rq1cTmQW0P+0jtTPOXSVqplDEcFVO+Cb9/9Qp2yNsJxHT3HCUQ0y6xA0choJ9gp918uV 5zmmP0YtNp7znKyYehN51jqj3bqceaRW5Hxm0s11ivGuQykN5keIHW+GBxX1kreQ2+Vv 17TGKTInuigqg8MhvlSzcYcsaDGwHWnfSKXkfERp1bedWl+UgCFkCVKDKb9n/bRWGvLF ah6g==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com Received: from mo-csw.securemx.jp (mo-csw1802.securemx.jp. [210.130.202.152]) by gmr-mx.google.com with ESMTPS id z12-20020a17090ad78c00b0029b6fea28absi165518pju.3.2024.03.05.22.14.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 22:14:04 -0800 (PST) Received-SPF: pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) client-ip=210.130.202.152; Received: by mo-csw.securemx.jp (mx-mo-csw1802) id 4266E2NF3344049; Wed, 6 Mar 2024 15:14:02 +0900 X-Iguazu-Qid: 2yAaJS4woLWolvstyV X-Iguazu-QSIG: v=2; s=0; t=1709705642; q=2yAaJS4woLWolvstyV; m=8VO2zfB7xywEMe0WJKCA9MHxxjMQQr/95rs0oFYOsVQ= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1801) id 4266E1LO2762549 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 6 Mar 2024 15:14:02 +0900 From: Adithya Balakumar To: isar-users@googlegroups.com, amikan@ilbers.de Cc: kazuhiro3.hayashi@toshiba.co.jp, dinesh.kumar@toshiba-tsip.com, shivanand.kunijadar@toshiba-tsip.com, sai.sathujoda@toshiba-tsip.com, adithya.balakumar@toshiba-tsip.com Subject: [PATCH v2 1/2] isar-bootstrap.inc: Export SOURCE_DATE_EPOCH variable Date: Wed, 6 Mar 2024 11:44:22 +0530 X-TSB-HOP2: ON Message-Id: <20240306061423.1088541-2-Adithya.Balakumar@toshiba-tsip.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240306061423.1088541-1-Adithya.Balakumar@toshiba-tsip.com> References: <20240306061423.1088541-1-Adithya.Balakumar@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 06 Mar 2024 06:13:58.0495 (UTC) FILETIME=[79C61EF0:01DA6F8D] X-Original-Sender: adithya.balakumar@toshiba-tsip.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) smtp.mailfrom=Adithya.Balakumar@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?= The third field in the /etc/shadow file (sp_lstchg) contains the date of the last password change expressed as the number of days since Jan 1, 1970. The sp_lstchg value changes when the images are built on different days making the image not reproducible. Exporting the SOURCE_DATE_EPOCH variable ensures that sp_lstchg value is set with respect to the SOURCE_DATE_EPOCH value while debootstrap creates the minimal rootfile system. Signed-off-by: Adithya Balakumar --- meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc index 3477c2fb..b1fcd7b0 100644 --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -292,6 +292,10 @@ do_bootstrap() { sudo rm -rf --one-file-system "${ROOTFSDIR}" deb_dl_dir_import "${ROOTFSDIR}" "${BOOTSTRAP_BASE_DISTRO}-${BASE_DISTRO_CODENAME}" + if [ -n "${SOURCE_DATE_EPOCH}" ]; then + export SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH}" + fi + sudo -E -s <<'EOSUDO' set -e if [ "${BOOTSTRAP_FOR_HOST}" = "0" ]; then From patchwork Wed Mar 6 06:14:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adithya Balakumar X-Patchwork-Id: 3382 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 06 Mar 2024 07:14:14 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oo1-f56.google.com (mail-oo1-f56.google.com [209.85.161.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4266ECum006622 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 6 Mar 2024 07:14:13 +0100 Received: by mail-oo1-f56.google.com with SMTP id 006d021491bc7-5a11d2b1ebesf1441271eaf.1 for ; Tue, 05 Mar 2024 22:14:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709705646; cv=pass; d=google.com; s=arc-20160816; b=PsUA9N618dvYiB6aJHJngElu9Y/U/J2V1xyFKkFDSBtI0/8031PrQmbEm9sx9JC+M3 pR68JDhXS3QnRylV+A3g5DfBentMavcJAhkoSNap0SqrmoB/3J/gk6WUK3Vel+vWa83N QD79yDTXkc+PHemjOkvLGfNQeLNdolbqt5g3mjfuo02SU5lYuKupWU4eY8UwxPyX3VQf 5OcHbOmF2CdigWfQS3AEDbviTM3eq+y+ZDJgQmZFtlhvNtVc5eJXMcd04spBweSHHmrj eKrcUKHr//LVVSWxrKad0J+47yme4Ov/vlQQmypKCE7u2ucYYc/8BQMMN31vY/83LihQ 99Vg== 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=2oEGytm2tIpVVgSoIWIkchjV1oHrN5fjRP50Dce/PMw=; fh=DgVIKwwep6nMnsruc5UnXBWGAJokGdncEmUTOlKGVIk=; b=KpQO2SQP4sSsf24t2C+SIaXnlH2rxkTZsomkxEOqQL8Dr3uWyGzl+qSJSXwqW6RyTt jx6tpTh8Fo2Uddv+5rnDJO6MG//l2VZAK5cyHMU2IP/3zStMkG2UgFm4PTKiQ8Y1QqO4 QznMiJ/VLKr8hSOf/5//7wtuuKB/PK19xQs3es51BP79YcN/xk14T3X1N+zGZzSaUlik dNret7LY/ey9o+UT9I46hQw1uJMTV7+E+MpThTAjuOAU37WihL6GOVvCMy++i2VoiIZK 2J5HjFmOtuEpfjfm+hAIfTkUm19Pmo3CTbTe+HT3ECEFhsu182+P0l0A7t5AwIl3AyG4 Im/A==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1709705646; x=1710310446; darn=isar-build.org; 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=2oEGytm2tIpVVgSoIWIkchjV1oHrN5fjRP50Dce/PMw=; b=DBEvGs+O+N/DtbmC3ArFDNMfMpfZOmn5amqYOir00MBDu65uKI5gHl1FNMiuWLrdZX +0gzfdSzcCs+Pcpn9ayX5Ty2UHKRRpHPE5d3afaX95ni/PooTOUnioIvV7Sb343df5PC xeA/z75z33Vcwtbg51/dB0Qp7YF+ND9qbvzFWfH6L4ubYIpPOMI9Sqh85FqvMqwl5Lju miMAF5IhNprHa/m0WY8KyRPClJWHL5zeQhcvdyHEAjZKjqQr6Fhr2cg7r+vzpcPfrraS fjqkv3UMyhmXGX9QXIn5seyVe9u/9a9ieznj0msOS5dlbKjBxs26SLUGB2qsDp9QUnpD 7rQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709705646; x=1710310446; 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=2oEGytm2tIpVVgSoIWIkchjV1oHrN5fjRP50Dce/PMw=; b=vwZgyn+UTynW4cKY2OVYX2gv2XpTUexaFAhzCiVSaGSI964TlbNdvPc1NKEttp91zj ZrN0QX5A5gf5pzRtUhK3H3vUbiGjpqI2XAU2+7HzYOaq9tjodjtBlV7+/kuD7WwBRvPY GvpjKiQ1kFXyquGaF9AY4BlrYY/GELe18k7yLxAZtdTOfhaKjrjiMXPTj8SISFYXVIUa eAWt3UgsV3vvlyGYA9cDtl5v6RZazugHbHmSY0prGS0HSxvZJ2cj/z0evRpTfk3D6GKe /rrDMm3On3wiuIb8EZ+nG1x2PxSIdk+zWLOenOIq5IYRH2Xjsf4T7U0eNfEFdee7bnOb mvBg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCW0Kdmxr2oCFXN8/uRNiRZPEoH6XtymTyKdjqRNE06kDEvoRbtOnmffP/8Gv9qSWw++ZqH8/nZl/++CYvWzGYkafqRpOzY= X-Gm-Message-State: AOJu0Yz2lVB51df75/edJ4xhJ08bqq7G9XUQX22HzOk3GQsBUpL1xtNm DgzzgFOLHLmjHPnNZxivqpTkvVQ9RCSfYOAf+tSJbxsX+dOypSSW X-Google-Smtp-Source: AGHT+IF0+dsIaycBV+NFWiv8MEK4olXN9927tAwsq9koHRBaVshuW5dPxNdtX6mqJUrxb9Lwl1E8BA== X-Received: by 2002:a05:6820:1c9f:b0:5a1:6ddb:ab83 with SMTP id ct31-20020a0568201c9f00b005a16ddbab83mr2876858oob.1.1709705646685; Tue, 05 Mar 2024 22:14:06 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a4a:e9f3:0:b0:5a1:2a6c:27e8 with SMTP id w19-20020a4ae9f3000000b005a12a6c27e8ls1299112ooc.0.-pod-prod-01-us; Tue, 05 Mar 2024 22:14:06 -0800 (PST) X-Received: by 2002:a05:6830:4c3:b0:6e4:e50f:7c1 with SMTP id s3-20020a05683004c300b006e4e50f07c1mr4083804otd.38.1709705646100; Tue, 05 Mar 2024 22:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709705646; cv=none; d=google.com; s=arc-20160816; b=uMWtiGd4BgxoQd7zHoWVMfO2MKMGRSWeRrC+7OaUkBWT+YXOasVccfcy6zRSHzmcJ6 btBiPEvslWxi94InFuJYdjNXBtuX8xxQ+dduPgBpEOD0czFEKMQGq+ABCH3JiREP7cbu NshL6HjHkBc6blo7jFvvGSH3NwS2q+Ik1UEaocZpSIva3T2HvcRtCpvVO9l0lx008F/U 0eZs05/igQkaeD/L+05Wx8wYXaGVpdB2pdEUtu1gWHXT5FPDnD15V9Gpmv9daOyooy+h HPEx+eYWTSXeIGkxochr2VP68ng6/r+wXqQnjSljOE0MzsoedkmInQlhkW3h2iXBPl9K 6DdQ== 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=iXpeMJqKl8mbnNe0O1BFv8b9wpv1TH6pSkctBMtoYPM=; fh=K/mZt3pelG5XhoKo7NmnVKDkBr0U6QSPt5Hs4miWPTI=; b=FxIYI/78hqwpp1Fa9HaBWm5qYmUVDRtgYT35wkDKGVaMAidK7NyoHTuZ030Jb1UGli XZoUM1ry6HGYeLMPtX/zBcJ9tfvWsPCD49EAPA7/l2I7mGLk0wfJwL/KDABoT74GmMcQ VGrVZ4b1y+rxMh+SRA4EQZn2w++R9JuSW6Cc+QGYLh2Q3MQAk+qUHS3P2QHg7pu2fAw7 C7bhVYq855VxpJlwslZLRXmMBOa4aUNLTvOgOiAThTDsBzdFuRJucZzZ7dv0QwV9B/uH JGxeaTlpmxNQZrcQlUFwNttfHxZP2oBoljR777sTaW6Op+4lQuVpgC/5NDRxYvKX5FHP 8CLw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com Received: from mo-csw.securemx.jp (mo-csw1802.securemx.jp. [210.130.202.152]) by gmr-mx.google.com with ESMTPS id d34-20020a630e22000000b005e4310c3b74si1149028pgl.5.2024.03.05.22.14.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 22:14:06 -0800 (PST) Received-SPF: pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) client-ip=210.130.202.152; Received: by mo-csw.securemx.jp (mx-mo-csw1802) id 4266E4Yn3344149; Wed, 6 Mar 2024 15:14:04 +0900 X-Iguazu-Qid: 2yAaYKYb3j55rZVqON X-Iguazu-QSIG: v=2; s=0; t=1709705643; q=2yAaYKYb3j55rZVqON; m=0RjW+sV+rTJVMTsCJm8330aWAeKPk51+RCWKpZoYh1k= Received: from imx12-a.toshiba.co.jp ([38.106.60.135]) by relay.securemx.jp (mx-mr1801) id 4266E3OR2762600 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 6 Mar 2024 15:14:03 +0900 From: Adithya Balakumar To: isar-users@googlegroups.com, amikan@ilbers.de Cc: kazuhiro3.hayashi@toshiba.co.jp, dinesh.kumar@toshiba-tsip.com, shivanand.kunijadar@toshiba-tsip.com, sai.sathujoda@toshiba-tsip.com, adithya.balakumar@toshiba-tsip.com Subject: [PATCH v2 2/2] image-account-extension.bbclass: Export SOURCE_DATE_EPOCH variable Date: Wed, 6 Mar 2024 11:44:23 +0530 X-TSB-HOP2: ON Message-Id: <20240306061423.1088541-3-Adithya.Balakumar@toshiba-tsip.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240306061423.1088541-1-Adithya.Balakumar@toshiba-tsip.com> References: <20240306061423.1088541-1-Adithya.Balakumar@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 06 Mar 2024 06:13:58.0573 (UTC) FILETIME=[79D205D0:01DA6F8D] X-Original-Sender: adithya.balakumar@toshiba-tsip.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) smtp.mailfrom=Adithya.Balakumar@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?= When a user account is created / updated, the third field (sp_lstchg) in the /etc/shadow file could be modified. The third field contains the date of the last password change expressed as the number of days since Jan 1,1970. When the images are built on different days, the value of sp_lstchg will be different making the image not reproducible. Adding the SOURCE_DATE_EPOCH variable to environment ensures that sp_lstchg value is set with respect to the SOURCE_DATE_EPOCH value. Signed-off-by: Adithya Balakumar --- meta/classes/image-account-extension.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/classes/image-account-extension.bbclass b/meta/classes/image-account-extension.bbclass index 9e67cb91..3d4e1d1d 100644 --- a/meta/classes/image-account-extension.bbclass +++ b/meta/classes/image-account-extension.bbclass @@ -131,6 +131,10 @@ def image_create_users(d: "DataSmart") -> None: ROOTFS_POSTPROCESS_COMMAND += "image_postprocess_accounts" python image_postprocess_accounts() { + import os + if d.getVar("SOURCE_DATE_EPOCH") != None: + os.environ["SOURCE_DATE_EPOCH"] = d.getVar("SOURCE_DATE_EPOCH") + image_create_groups(d) image_create_users(d) }