From patchwork Mon Mar 4 10:37:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adithya Balakumar X-Patchwork-Id: 3378 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 04 Mar 2024 13:18:12 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oo1-f63.google.com (mail-oo1-f63.google.com [209.85.161.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 424CIARe029192 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 4 Mar 2024 13:18:11 +0100 Received: by mail-oo1-f63.google.com with SMTP id 006d021491bc7-5a10683780dsf3445702eaf.1 for ; Mon, 04 Mar 2024 04:18:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709554685; cv=pass; d=google.com; s=arc-20160816; b=BiPyjAUAwZRM+zgc2BaT+UEn3KD9twRmzUTzB6b7v4x0rNNJsqsSHvoKsujYyZtSIp ZIUAdsO0BhkJ7/taQjFVWmg6NlOh+ZoptEMmcrMimekixVIFTFJ/zDre9C8mTlDZijEt yGNUg6gzqobUIoDkcd6muNb2BZUVSjHUX6ZR8xhcMI4Osrd0g3OeGDcF8crUJS6MjZiH CUt5l6fGTTUFPjUBD0ALIDF5D/hExc789+IrdEF7Lhply84lrvEZ15O/9y/mxbA8RJqX POU70t9SF0IDBkkRTJeIvwWxXbtFfLHjufmfOWcMIFvgYda2vRJU3+SLxk917bLBMYLs kBdQ== 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=h40csgsBwoG7BUAlJ0LuRHmPXGprQbXbJ3ZjrrUxs9A=; fh=X5Z4Qq3sxBh/N9/8meUYGu5V2za0ST+nLgacoE+rr1U=; b=WBjJQu03ABX4rz2LBOYYEe3u2IWczeJWpGPky3IZzbpFeYFZJnh+rSWsiPR6J8eCT4 8Ee51bls/41zXZSK9NK04J6yvKn5pAddy3qu0JTDzitOxOnu1vLMihIb80tHqEsDpiBE Kbr2UF8Mvw5h03H4zgOp8lg9Ksio07Dp1Houmyi2ZyKtxGIjpE/wkv+ffKyFowyZI5XA eY5B97C4h5BAROxr2E5fjHnY1yzQ3nk5rFiGYrW/6jDTYDURKvQ2NF0MGu04ZsHc/NZ/ tMEQBf2Kq7Q8fFUbP9ISdE5BX6KemlvH12Ezwyo/Ji82KrOGDtV38xz8tFgnoOcVpIfH KGpg==; 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.134 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=1709554685; x=1710159485; 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=h40csgsBwoG7BUAlJ0LuRHmPXGprQbXbJ3ZjrrUxs9A=; b=B2MckVvK2HVybIIraP+0ISTrwTY1xTE6UFwh8govh/OomKKwDKo309MIusljkgXAC9 fsje9CC5h/vLiKo/LkWZDfvfVijfbn7pUBsqoJ1Z2P7c5m5Ke5BRmx60rEVg1ix8f0uv UMse5Pm3IkA9cFXUhr5ouPcpyP6rFql2yt7W+ZBmLm3g61bdEQ9uNTH/fA97GpishYWm rqBZWVo493Di9X1yBuE1FnNC+gKRMmLT44uP0UCzXpn+KF71BMG/GfGxFPJLzLdI70nj DEQy9aTWtzGadrePFyFE7HRp8vfR+PpLStL/thMMekHW8wqZBDKXAuAb3CEG/UDX2bqT /cRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709554685; x=1710159485; 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:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=h40csgsBwoG7BUAlJ0LuRHmPXGprQbXbJ3ZjrrUxs9A=; b=W8TJ099D6XdvoKm4Vhuz0kx3tD2ix8xB6SVFB+N5h3zp20PJuBnuaxXnZIorEmulAZ 0+Wupo6t02RlmOmlOY55vD+gI3GkkX+OdLwWiCF7PR+2F3mr6mndK+MCaXkQxOSUzL8c ng4fEBsK1abh6MTMLmKC5jrll8HXUO9Ig3NI2f0Pm1+wwvSrcFY+dj0F9MNxeQz5R2dr PdKFS+YZkXbGCVb0lszV5LRHOkydlDuN8Ir8IoPgtmVOAzLbAXeKRH0NEDo8m+lkG7Rg km7LN6X+1f6IvWZsEhQ9BUukE0QlCDE8ml/2mlyAQISDAxlfvuFleHkt4RF6s8WSyteY 8BMg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVJm4YwKJMlRQQ/8Tzhvm9fAdqt8wVUOeuKbQL5txuMCBo7rrVi/89s3IeDTFIxLfHE61hYIb41CEp8N+zaadTZwn/mego= X-Gm-Message-State: AOJu0YzcFb7mRpDqYnPPhn6qrQOW/XJqbNFukw9ZinlW/iVa45gIdtI3 8AWYpViNCeOn94CEENKfeSQ4zdAvffzEez6GacbiqGwoc4nnbG9Z X-Google-Smtp-Source: AGHT+IH3UrIOeh2hmKSq1/Qr1Kni0cql+uOmbPrHYC+yEntPh/ZHkBLYtl37st2jAPQgcUn0mIfayQ== X-Received: by 2002:a4a:251d:0:b0:5a1:1e5e:1fce with SMTP id g29-20020a4a251d000000b005a11e5e1fcemr4467077ooa.1.1709554685224; Mon, 04 Mar 2024 04:18:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a4a:5bc2:0:b0:598:fb75:89d6 with SMTP id g185-20020a4a5bc2000000b00598fb7589d6ls690356oob.0.-pod-prod-00-us; Mon, 04 Mar 2024 04:18:04 -0800 (PST) X-Received: by 2002:a05:6808:1a0b:b0:3c1:e933:de0f with SMTP id bk11-20020a0568081a0b00b003c1e933de0fmr155930oib.4.1709554684844; Mon, 04 Mar 2024 04:18:04 -0800 (PST) Received: by 2002:a05:6808:f04:b0:3c1:b790:b6ba with SMTP id 5614622812f47-3c1f56aca76msb6e; Mon, 4 Mar 2024 02:37:59 -0800 (PST) X-Received: by 2002:a05:6a20:e198:b0:1a1:51ad:c30e with SMTP id ks24-20020a056a20e19800b001a151adc30emr1740727pzb.42.1709548678322; Mon, 04 Mar 2024 02:37:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709548678; cv=none; d=google.com; s=arc-20160816; b=ZSkhPR7oPZ/cd8t6P/TIz+1pikV8D1Lv7r0QUo0mNqUJRHd0V2nPQAOtvjabvuP6UM LrjDr+vSATRA+jVAJjOsX18ZHmF6Ma03DSoGhYg4ZpolHgbE3f0yyoeKTmr48CoOR7+E o1Cn9ZTvcoM1XRs09o8eXzxBz3pDWVx0M5X5B4PKRdrmriTL/oU3FlbXbUG5Km3Fty3a /XyTqcp+u6xJxzDp+Pf8iavCUMbcCviNFplHMCeFyBGuKKdHEi5Kim7QjoOj4PG/LbXd 5bTlEm5BXl5dtAqApqh+HgS+tDXTPkKWp0mn6eLfwcQfg81j8b9fXnEVzQ9E/+gsShW3 vtZw== 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=plDLRVGddDG2U6Lw3/QgqWoMfAKmVsD3QumAJNg3HVk=; fh=RYZmcCXJcirvewR08yWj1ALPTeL/uhrF1yW+EUNwYhk=; b=N3k+mKRj/oDtIBytETX6sBRF0OI/LIiLTrc7i5Kvrb30nYPm5kevCcYJ/W1N2OneGZ nB/ibffOdt0DYqEK5Cz2W5khxt8/aUt4ZiYuobdszBI/kFDmYGRm6IjotNNt49jxwE05 DyLyqNwgDlm+e/oblAU0t73zAx+hBdaT/EXhp/oI8oGqmGkoZR6Cjd87io44SabdlCaw yyUgLRwxenGDRiH4zXdkvrEzzcon8WPCNF8HNXU4j4kzDMvrBjIqwLLfXp0+EnVYKD5t q+0p5AszokVAi+RTBIjtk0hupCRbXvG5OYQsf2JMH7eQu/d7yFOZYpineHz4lbvBa+DG 6SSw==; 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.134 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com Received: from mo-csw.securemx.jp (mo-csw1800.securemx.jp. [210.130.202.134]) by gmr-mx.google.com with ESMTPS id k138-20020a628490000000b006e5dc73ea0dsi673685pfd.3.2024.03.04.02.37.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:37:58 -0800 (PST) Received-SPF: pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.134 as permitted sender) client-ip=210.130.202.134; Received: by mo-csw.securemx.jp (mx-mo-csw1800) id 424Abuu03838659; Mon, 4 Mar 2024 19:37:56 +0900 X-Iguazu-Qid: 2yAayDBj4uMVQiwD1U X-Iguazu-QSIG: v=2; s=0; t=1709548676; q=2yAayDBj4uMVQiwD1U; m=Y6iLmY+u4ioCTyleXDZc1GWCgD9qReJffBhlrjYlx/U= Received: from imx12-a.toshiba.co.jp ([38.106.60.135]) by relay.securemx.jp (mx-mr1802) id 424AbtMw3482202 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 4 Mar 2024 19:37:55 +0900 From: Adithya Balakumar To: isar-users@googlegroups.com, amikan@ilbers.de Cc: jan.kiszka@siemens.com, 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 1/2] isar-bootstrap.inc: Export SOURCE_DATE_EPOCH variable Date: Mon, 4 Mar 2024 16:07:15 +0530 X-TSB-HOP2: ON Message-Id: <20240304103716.1100116-2-Adithya.Balakumar@toshiba-tsip.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240304103716.1100116-1-Adithya.Balakumar@toshiba-tsip.com> References: <20240304103716.1100116-1-Adithya.Balakumar@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 04 Mar 2024 10:37:53.0552 (UTC) FILETIME=[03609100:01DA6E20] 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.134 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-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?= 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..89746e85 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 [ ! -z "${SOURCE_DATE_EPOCH}" ]; then + export SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH}" + fi + sudo -E -s <<'EOSUDO' set -e if [ "${BOOTSTRAP_FOR_HOST}" = "0" ]; then