From: Henning Schild <henning.schild@siemens.com>
To: "[ext] Jan Kiszka" <jan.kiszka@siemens.com>
Cc: <chombourger@gmail.com>, isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] image: include image name in the kernel/initrd image copies
Date: Mon, 22 Oct 2018 17:48:44 +0200 [thread overview]
Message-ID: <20181022174844.129f366d@md1pvb1c.ad001.siemens.net> (raw)
In-Reply-To: <695f9e56-13af-9a25-df97-4f1b8a11a364@siemens.com>
Am Thu, 18 Oct 2018 12:29:47 +0200
schrieb "[ext] Jan Kiszka" <jan.kiszka@siemens.com>:
> On 18.10.18 11:46, chombourger@gmail.com wrote:
> >
> > Hi Jan,
> >
> > See below
> >
> > On Thursday, October 18, 2018 at 11:27:10 AM UTC+2, Jan Kiszka
> > wrote:
> >
> > On 18.10.18 11:04, Cedric Hombourger wrote:
> > > The kernel and initrd images are really image-specific
> > > (especially the later with the initrd being created/updated
> > > as packages get installed into the
> > root
> > > file-system). Make sure we retain a per-image copy of these
> > > images in the
> >
> > I don't buy this argument yet: Which additional parameters
> > besides the and the MACHINE make kernel different?
> >
> >
> > An image recipe may pull a different kernel than the default kernel
> > proposed by the MACHINE or DISTRO
> > There are several ways: locally setting KERNEL_NAME,
> > IMAGE_INSTALL_remove games, etc.
> >
> > This is obviously a less frequent use-case than the initrd which is
> > evidently populated based on hooks/scripts installed into your root
> > file-system (and therefore image dependent)
>
> OK, in that light, it is something that should be called just like
> the generated image. But I think the whole beast needs rework now.
> See below.
>
> >
> > If there is any, can't we associate that
> > variation more directly with the image then? It's surely not
> > the image recipe name.
> >
> >
> > Would you have a suggestion (based on the extra info I provided
> > above)?
> >
> > A possibly cleaner solution would be to NOT copy these files
> > into DEPLOY_DIR_IMAGE in the first place! and have e.g. wic plugins
> > extract the kernel/initrd images from the rootfs they are working
> > with I am happy to rework this patch if breaking the API (by
> > removing KERNEL_IMAGE and INITRD_IMAGE) is an option
>
> We have two use cases so far: QEMU and wic. Both work without
> downstream effort by just using those two variables. That by itself
> is not bad. An alternative might only by peeking directly into the
> rootfs trees of the images, i.e. avoiding the copying to deploy. Not
> sure, actually, what value this copy-out provides, at least as long
> as the user does not manual deployment of the artifacts.
I think the only reason may be qemus --kernel and --initrd. Wic could
probably deal with the kernel being inside the rootfs, in the wic case
we even "ship" the files twice because /boot/ never gets cleaned.
But qemu is not able to look into an ext4img and the deploydir is the
only safe place to keep results.
If qemu is indeed the only reason, we should get rid of the copy and
change the ci-scripts to extract the ext4 for a temporary copy.
Henning
> Anyway. If we keep copy-out: Instead of appending further elements to
> the kernel/initrd prefix, we should really consolidate things. The
> image, maybe it be wic-generated or ext4-img or whatever, as well as
> associated artifacts should follow the same file naming scheme so
> that you can easily identify related artifacts.
>
> Furthermore, we likely need to update things like
> do_copy_boot_files[stamp-extra-info],
> do_populate_sdk[stamp-extra-info] to follow those patterns as well.
>
> Jan
>
prev parent reply other threads:[~2018-10-22 15:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-18 9:04 Cedric Hombourger
2018-10-18 9:27 ` Jan Kiszka
2018-10-18 9:46 ` chombourger
2018-10-18 10:29 ` Jan Kiszka
2018-10-18 10:37 ` Jan Kiszka
2018-10-18 11:45 ` chombourger
2018-10-18 13:53 ` Jan Kiszka
2018-10-18 17:23 ` [PATCH v2] " Cedric Hombourger
2018-10-22 12:49 ` cedric_hombourger
2018-10-22 13:52 ` Jan Kiszka
2018-10-25 11:19 ` Maxim Yu. Osipov
2018-10-25 11:20 ` Cedric Hombourger
2018-10-22 15:24 ` Henning Schild
2018-10-25 11:50 ` Cedric Hombourger
2018-10-25 14:22 ` Henning Schild
2018-10-25 14:46 ` [PATCH v3] " Cedric Hombourger
2018-10-26 12:58 ` Maxim Yu. Osipov
2018-11-09 11:04 ` Jan Kiszka
2018-10-22 15:48 ` Henning Schild [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=20181022174844.129f366d@md1pvb1c.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=chombourger@gmail.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.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