From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7342481464494129152 X-Received: by 2002:a4a:5855:0:b0:5a1:257b:97d0 with SMTP id f82-20020a4a5855000000b005a1257b97d0mr3682889oob.2.1709554685317; 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-Google-Smtp-Source: AGHT+IGAylXS+yfu3waFX213Ojf8+F9/wh4T11+1pJ1tMA7E1s8VjoZBEgWRybG6xGDYtFnZ8+AP 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 Return-Path: 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; 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 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 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 04 Mar 2024 10:37:53.0552 (UTC) FILETIME=[03609100:01DA6E20] X-TUID: 3qzibk1VIo59 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 -- 2.39.2