From: Baurzhan Ismagulov <ibr@radix50.net>
To: isar-users@googlegroups.com
Subject: Re: [PATCH v2] use xz and gzip on host (outside chroot)
Date: Mon, 15 Aug 2022 12:47:26 +0200 [thread overview]
Message-ID: <YvokPh2Fbwtx5Ucv@ilbers.de> (raw)
In-Reply-To: <20220808173049.23ea9579@md1za8fc.ad001.siemens.net>
On Mon, Aug 08, 2022 at 05:30:49PM +0200, Henning Schild wrote:
> > diff --git a/meta/classes/imagetypes.bbclass b/meta/classes/imagetypes.bbclass index 1e8e223d..319e9dc8 100644
> > --- a/meta/classes/imagetypes.bbclass
> > +++ b/meta/classes/imagetypes.bbclass
> > @@ -95,13 +95,13 @@ IMAGE_CMD_ubi[depends] =
> > "${PN}:do_transform_template" # image conversions
> > IMAGE_CONVERSIONS = "gz xz"
> >
> > -CONVERSION_CMD_gz = "${SUDO_CHROOT} sh -c 'gzip -f -9 -n -c
> > --rsyncable ${IMAGE_FILE_CHROOT} > ${IMAGE_FILE_CHROOT}.gz'"
> > -CONVERSION_DEPS_gz = "gzip" +CONVERSION_CMD_gz ?= "gzip -f -9 -n -c
> > --rsyncable ${IMAGE_FILE_HOST} > ${IMAGE_FILE_HOST}.gz"
> > +CONVERSION_DEPS_gz ?= ""
>
> No. Please only add the ? so you can take the shortcut in your layer,
> without changing the conservative and slow isar defaults.
I agree in principle that such cases occur from time to time. I've seen mke2fs
producing filesystems that were unreadable by older kernels due to some flags
and compression tool option differences (the latter not applying in this case).
In practice, I think such cases are quite rare; for this potential
compatibility, we'd pay performance penalty every day. So, I'd like to benefit
from this finding, in Isar, by default. If we can always switch back to the
slower variant, that sounds as Good Enough for me.
An alternative could be to compress from the host chroot regardless of the
cross-compilation setting. While at it, we could also evaluate pigz (it would
be interesting to see some benchmarks on the list) and recheck the reasons why
cross-compilation was disabled for the imager -- maybe it's solvable this time.
With kind regards,
Baurzhan
next prev parent reply other threads:[~2022-08-15 10:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-08 7:36 Felix Moessbauer
2022-08-08 15:30 ` Henning Schild
2022-08-15 10:47 ` Baurzhan Ismagulov [this message]
2022-08-16 15:11 ` Anton Mikanovich
2022-08-30 15:38 ` Moessbauer, Felix
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=YvokPh2Fbwtx5Ucv@ilbers.de \
--to=ibr@radix50.net \
--cc=isar-users@googlegroups.com \
/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