public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: <kazuhiro3.hayashi@toshiba.co.jp>
To: <ibr@radix50.net>, <isar-users@googlegroups.com>
Cc: <wookey@wookware.org>, <meta-eid@googlegroups.com>
Subject: RE: multistrap support
Date: Mon, 18 Feb 2019 03:04:44 +0000	[thread overview]
Message-ID: <OSAPR01MB4691B8BF5E08B1C63C89F437E1630@OSAPR01MB4691.jpnprd01.prod.outlook.com> (raw)

Hi Baurzhan,

> -----Original Message-----
> From: meta-eid@googlegroups.com [mailto:meta-eid@googlegroups.com] On
> Behalf Of Baurzhan Ismagulov
> Sent: Thursday, February 14, 2019 4:24 PM
> To: isar-users@googlegroups.com
> Cc: wookey@wookware.org; meta-eid@googlegroups.com
> Subject: Re: [meta-eid] multistrap support
> 
> On Wed, Feb 13, 2019 at 01:14:57PM +0000, kazuhiro...@toshiba.co.jp wrote:
> > I would like to know if isar still has some plans to use multistrap again
> > (or similar existing tools if exists) to generate target images.
> >
> > Multistrap for isar-image-base has been removed by the following commit:
> > https://github.com/ilbers/isar/commit/19a314559178f7afd93ce3dafe8c8647ca6c8884
> > and replaced by setup_root_file_system() in isar-bootstrap-helper.bbclass,
> > which seems to use (pre-built?) isar-bootstrap-$ROOTFS_DISTRO-$ROOTFS_ARCH
> > as the base tree instead of running the debootstrap process.
> >
> > I guess that the main purposes of quitting multistrap is that
> > there is no big update for a few years (though the last update is 2.2.10 on Nov. 2018)
> > Are there any other reasons?
> > (Some bugs difficult to be fixed, mismatches with isar specification, etc.)
> >
> > The current isar-bootstrap based approach would work fine for isar system,
> > but in that case, it might be difficult to share efforts for
> > developing and maintaining the functionality with non isar users.
> > I'm just interested in the future plan of isar.
> 
> Neil told us that he doesn't maintain multistrap anymore. We also encountered
> issues (e.g., https://github.com/ilbers/isar/issues/16). For me personally,
> Perl is an obstacle (I go through Perl tutorials every couple of years :) ). So
> switching to debootstrap was easier at the time.

Thanks. At the moment, I think that the debootstrap based approach might be safer
using than multistrap from future maintenance point of view.

> 
> That is not to say that debootstrap is the tool we want to have. The focus of
> debootstrap is to create Debian rootfss on Debian and non-Debian systems with
> the least possible dependencies. Given that, it is developed in shell, which is
> also not maintainable.
> 
> In the long run, we'll need more and more introspection into apt & Co. for more
> advanced features. One way could be multistrap re-implementation in Python, as
> suggested by Wookey. ELBE has good experiences with libapt. aptly also promises
> some features we would like to use (though probably not multistrapping OOTB).

I'm not sure how the multistrap re-implementation is demanded in Debian community,
though we are interested in that. In this discussion, I recognized that
there are several approaches to bootstrap Debian images including customized
'essential' packages. For examples,

1. multistrap (Debian mirror + Custom repos)
2. debootstrap (Debian mirror) + apt (Custom repos)
3. debootstrap (Merged repo = Debian mirror + Custom repos)
and more...?

aptly probably helps creating the merged repo in 3 as well as snapshotting
and maintaining required repos effectively, I should look at this.

> 
> Bootstrapping hybrid repos is also a useful use case. It can be achieved by
> making the "secondary" distribution upgradable from Debian, but if one has a
> lot of customized packages, using multistrap would require less effort and be
> less error-prone as well. In Isar, we try to stay away from massive
> modifications, but there are projects ending up tuning significant parts of
> Debian.

Thank you for telling the current situation in Isar.
IIUC, this is comparison of the 1 and 3 above.
I agree that multistrap effectively works in case where there are a lot of
customized packages.

> 
> The specific tools don't have to be mutually exclusive; Python offers enough
> polymorphism to include both as plugins (bitbake support has to be checked).
> With quite diverse requirements and opinions we already have today, we'll need
> pluggability, be it for multistrap or other features; the earlier we start
> playing with it, the better. For me, it is the question of enough itch rather
> than resources.
> 
> For your specific use case, I don't see a problem using multistrap for meta-eid
> till we have a better alternative.

I agree.
I've just support two solutions (1)multistrap and (2)debootstrap+apt in
debian-image.bb (Very simple example of the image generator)
https://github.com/eid-project/meta-eid/blob/master/recipes-image/debian-image/debian-image.bb

Kind regards,
Kazu


             reply	other threads:[~2019-02-18  3:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18  3:04 kazuhiro3.hayashi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-02-27  9:08 kazuhiro3.hayashi
2019-02-25 17:08 kazuhiro3.hayashi
2019-02-25 17:59 ` Henning Schild
2019-02-13 13:14 kazuhiro3.hayashi
2019-02-13 13:56 ` Claudius Heine
2019-02-13 15:18 ` Henning Schild
2019-02-14  6:08   ` kazuhiro3.hayashi
2019-02-13 16:15 ` Jan Kiszka
2019-02-14 10:14   ` kazuhiro3.hayashi

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=OSAPR01MB4691B8BF5E08B1C63C89F437E1630@OSAPR01MB4691.jpnprd01.prod.outlook.com \
    --to=kazuhiro3.hayashi@toshiba.co.jp \
    --cc=ibr@radix50.net \
    --cc=isar-users@googlegroups.com \
    --cc=meta-eid@googlegroups.com \
    --cc=wookey@wookware.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