public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Alexander Smirnov <asmirnov@ilbers.de>
To: Jan Kiszka <jan.kiszka@siemens.com>,
	"isar-users" <isar-users@googlegroups.com>,
	Christian Storm <christian.storm@siemens.com>
Subject: Re: Minimizing isar-image-base
Date: Wed, 22 Aug 2018 23:43:09 +0300	[thread overview]
Message-ID: <16563606f48.27ac.034a6b0541ed39b7fb4e17f4ac219eaa@ilbers.de> (raw)
In-Reply-To: <2732c10e-93ff-bc63-dac6-707930ba89f8@siemens.com>

Jan Kiszka <jan.kiszka@siemens.com> 22 августа 2018 г. 22:52:32 написал:

> On 2018-08-22 16:37, [ext] Jan Kiszka wrote:
>>>> - Why do we pre-install dbus?
>>>
>>> Again, IIRC, without dbus there was dirty boot log in QEMU, some
>>> services failed to start.
>>
>> I'll recheck that with stretch.
>
> Removed it, but I'm not seeing any error messages nor does systemctl
> report failed services.
> Maybe the bug was solved in stretch. Christian,
> you said there is a harder dependency in reality than the "recommends"
> as Debian declares now. Any comments on this?
>
> If it is really no longer needed, we could push the dbus dependency into
> debian-jessie.conf. Is raspbian-jessie on systemd as well? Then there as
> well.

One another thing changed since that time - migration from multistrap to 
debootstrap. Probably this could be the reason.

Alex

>
>>
>>>
>>>> - Can we make apt optional? Installing it as transient package by
>>>>   default, e.g. What would happen if a downstream image then puts it
>>>>   into PREINSTALL again? Should we filter IMAGE_TRANSIENT_PACKAGES
>>>>   against IMAGE_PREINSTALL?
>>>
>>> I could suppose how apt went to isar-image-base recipe, initially it
>>> was a copy of buildchroot one. So nobody actually cares about the list
>>> of packages, there was only one requirement - no error and warnings
>>> during image boot in QEMU.
>>>
>>> In buildchroot apt is needed to populate the dependencies.
>>>
>>> With current Isar implementation the apt is a must package for image.
>>> Let me explain why. Below is the whole chain to generate image:
>>>
>>> 1. At first, isar-debootstrap is called. This recipe fetches minimal
>>> *pure* Debian suite for specified architecture. It's stored in
>>> tmp/deploy folder.
>>> 2. Image generation is started from copying this pre-fetched suite to
>>> work folder.
>>> 3. Then you chroot to this *pure* minimal suite.
>>> 4. And finally all the additional packages in pre-install list are
>>> installed via apt-get.
>>>
>>> So, the only way for current architecture - remove apt in post-build
>>> task.
>>
>> Right, this is what I had in mind. I think we already have the tooling
>> for that, don't we?
>
> We don't. IMAGE_TRANSIENT_PACKAGES is not suited.
>
> Also, apt seems to get installed via debootstrap anyway. We should be
> fine removing it as explicit IMAGE_PREINSTALL entry. I'll propose a patch.
>
> But we will need some explicit purging step that removes it again (and
> possibly more packages) after the image is done. And it should be under
> custom-image control, whether that step is run or not - or what the
> purge list contains. We could also use --exclude of debootstrap but that
> would imply forking the base bootstrap environment because we use the
> same for image and buildchroots so far. Probably not a good idea.
>
> Jan
>
> --
> Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> Corporate Competence Center Embedded Linux




  reply	other threads:[~2018-08-22 20:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-20  7:22 Jan Kiszka
2018-08-20  7:24 ` Jan Kiszka
2018-08-21 19:36 ` Alexander Smirnov
2018-08-22 14:37   ` Jan Kiszka
2018-08-22 19:52     ` Jan Kiszka
2018-08-22 20:43       ` Alexander Smirnov [this message]
2018-08-23  6:29         ` Christian Storm
2018-08-28 13:45   ` Jan Kiszka

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=16563606f48.27ac.034a6b0541ed39b7fb4e17f4ac219eaa@ilbers.de \
    --to=asmirnov@ilbers.de \
    --cc=christian.storm@siemens.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