From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
To: "Moessbauer, Felix" <felix.moessbauer@siemens.com>
Cc: "roberto.foglietta@linuxteam.org"
<roberto.foglietta@linuxteam.org>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: Re: [PATCH v6] suggested changes for reproducibility patchset v6
Date: Mon, 16 Jan 2023 10:36:36 +0100 [thread overview]
Message-ID: <CAJGKYO4714QY5c5nXQSW3okKkyKq6KNkOU4OCiK6BQx9CPmgfQ@mail.gmail.com> (raw)
In-Reply-To: <e5381f709293f156664a14aae890d251596a7ed4.camel@siemens.com>
[-- Attachment #1: Type: text/plain, Size: 2801 bytes --]
On Mon, 16 Jan 2023 at 03:55, Moessbauer, Felix <
felix.moessbauer@siemens.com> wrote:
> On Sun, 2023-01-15 at 22:53 +0100, roberto.foglietta@linuxteam.org
> wrote:
> > From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
> >
> > suggested changes for reproducibility patchset
> >
> > WARNING: eval-image-1.0-r0 do_rootfs_finalize: modified timestamp
> > (1673628837) of 3 files for image reproducibly
> > List of files modified could be found here:
> > ./build/tmp/deploy/images/debx86/files.modified_timestamps
> >
> > v.2: rebased on current ilbers:next
> >
> > v.3: new script added: wic-extract-rootfs-partition.sh [image.wic]
> >
> > v.4: example with for epoch generation from git
> >
> > v.5: reverted the example and rework some few code
> >
> > v.6: the 1st part of the warning shows up each time the epoch is used
> > while the 2nd line appears only when some files has been touched
> > This allows the user to know the current situation aboat epoch.
>
> Sorry, but I can't follow either.
>
If 416 files are changed, there is no need to print out a warning of 416
lines but just 2 In case of zero files touched, just one line of warning is
fine.
Please send the versions as individual patch series, prefixed with
> "PATCH v<version>". And please only tackle one issue per patch
Ok. You are right. It is confusing to send suggestions in the form of a
patch.
> + password="$(openssl passwd -6 -salt $salt
> > $password)"
>
> This "fixup" is simply wrong because the value of the variables are not
> escaped correctly anymore. In short: it breaks if salt contains either
> reserved characters or spaces.
Correct: thanks.
> Please run this kind of stuff through
> shellcheck before proposing fixes.
>
The suggestion of shellcheck is great, it will be very useful to provide a
code verification in git-functions. However, his line of code of yours did
not even run in a console because it is broken when SOURCE_DATE_EPOCH is
defined - also in dash. In fact, you fixed it in v3. (SMILE)
roberto:~/d$ SOURCE_DATE_EPOCH=42; if [ -z "${SOURCE_DATE_EPOCH}"]; then
echo ciao; fi
bash: [: missing `]'
roberto:~/d$ SOURCE_DATE_EPOCH=""; if [ -z "${SOURCE_DATE_EPOCH}"]; then
echo ciao; fi
ciao
--- a/meta/classes/image-account-extension.bbclass
+++ b/meta/classes/image-account-extension.bbclass
@@ -256,11 +256,11 @@ image_postprocess_accounts() {
# chpasswd adds a random salt when running against a
clear-text password.
# For reproducible images, we manually generate the
password and use the
# SOURCE_DATE_EPOCH to generate the salt in a
deterministic way.
- if [ -z "${SOURCE_DATE_EPOCH}"]; then
+ if [ -z "${SOURCE_DATE_EPOCH}" ]; then
>
Best regards, R-
[-- Attachment #2: Type: text/html, Size: 4361 bytes --]
prev parent reply other threads:[~2023-01-16 9:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-15 21:53 roberto.foglietta
2023-01-15 22:01 ` Roberto A. Foglietta
2023-01-15 22:31 ` Florian Bezdeka
2023-01-15 22:46 ` Roberto A. Foglietta
2023-01-17 11:53 ` Florian Bezdeka
2023-01-17 13:10 ` Roberto A. Foglietta
2023-01-25 16:38 ` Roberto A. Foglietta
2023-01-16 2:55 ` Moessbauer, Felix
2023-01-16 9:36 ` Roberto A. Foglietta [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJGKYO4714QY5c5nXQSW3okKkyKq6KNkOU4OCiK6BQx9CPmgfQ@mail.gmail.com \
--to=roberto.foglietta@gmail.com \
--cc=felix.moessbauer@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=roberto.foglietta@linuxteam.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox