From: Jan Kiszka <jan.kiszka@siemens.com>
To: Claudius Heine <claudius.heine.ext@siemens.com>,
isar-users@googlegroups.com,
Alexander Smirnov <asmirnov@ilbers.de>
Cc: Claudius Heine <ch@denx.de>
Subject: Re: [PATCH v4 0/5] Debootstrap integration
Date: Fri, 9 Mar 2018 15:22:59 +0100 [thread overview]
Message-ID: <bdd34c2c-a257-621a-13a7-345f4605a5b8@siemens.com> (raw)
In-Reply-To: <16b13094-46e0-1c03-f60f-1df8f46e91b9@siemens.com>
On 2018-03-08 09:14, Claudius Heine wrote:
> Hi Jan,
>
> On 03/08/2018 07:06 AM, Jan Kiszka wrote:
>> On 2018-03-07 20:51, [ext] Jan Kiszka wrote:
>>> On 2018-03-07 17:44, [ext] claudius.heine.ext@siemens.com wrote:
>>>> From: Claudius Heine <ch@denx.de>
>>>>
>>>> Hi,
>>>>
>>>> sorry, just saw a small error, some changes to isar-bootstrap got into
>>>> the buildchroot patch.
>>>>
>>>> Cheers,
>>>> Claudius
>>>>
>>>> Changes from v3:
>>>> - A small modification to isar-bootstrap.bb snuck into the
>>>> buildchroot
>>>> patch.
>>>>
>>>> Changes from v2:
>>>> - rebased to current next
>>>> - added missing newlines at the end of file
>>>> - use cleandirs with root permissions
>>>> this could be improved in some later patch series, so that this
>>>> feature can be shared.
>>>> - moved main source url of packages to apt source list files of the
>>>> distributions:
>>>> - Implemented some basic parsing of source.lists files in
>>>> isar-bootstrap.
>>>> - Made 'DISTRO_SUITE', 'DISTRO_APT_SOURCE' and 'DISTRO_COMPONENTS'
>>>> variables obsolete.
>>>> - implemented repo key fetching to support rasbian repositories
>>>> - now the clean task removes the symlink of isar-bootstrap deploy
>>>> task
>>>>
>>>> Changes from v1:
>>>> - rebased to current next
>>>> - added unmounting of /dev and /proc at the end of do_rootfs in
>>>> isar-image-base
>>>> This was necessary for image file creation, otherwise it tried to
>>>> package stuff from the host.
>>>> - added 'isar-bootstrap:do_deploy' dependency to do_rootfs task in
>>>> image.bbclass.
>>>> - Changed 'RFSDIR' variable name to 'ROOTFSDIR' in
>>>> isar-bootstrap-helper.bbclass to be consistent with the variable
>>>> name in isar-bootstrap.bb
>>>> - Moved 'isar-apt' apt-preference settings from isar-bootstrap.bb to
>>>> isar-bootstrap-helper.bbclass
>>>> - Removed '--no-install-recommends' parameters in favor of adding
>>>> the
>>>> apt configuration in 'isar-bootstrap.bb'
>>>> - unmount and remove possible existing bootstraped directories
>>>> before
>>>> bootstrapping in do_bootstrap task of 'isar-bootstrap.bb'
>>>> - changed from /dev ro bind mounts to mounting devtmpfs to /dev
>>>> to be
>>>> consistent with the other places where /dev is mounted.
>>>>
>>>>
>>>> Claudius Heine (5):
>>>> implement isar-bootstrap using debootstrap
>>>> meta/isar-bootstrap-helper.bbclass: handle rfs customization
>>>> centrally
>>>> meta/buildchroot: switch to using isar-bootstrap
>>>> meta-isar/isar-image-base: switch to using isar-bootstrap
>>>> meta-isar/multiconfig: remove multistrap references
>>>>
>>>> meta-isar/conf/distro/debian-jessie.conf | 9 +-
>>>> meta-isar/conf/distro/debian-jessie.list | 3 +
>>>> meta-isar/conf/distro/debian-stretch.conf | 7 +-
>>>> meta-isar/conf/distro/debian-stretch.list | 3 +
>>>> meta-isar/conf/distro/debian-wheezy.conf | 9 +-
>>>> meta-isar/conf/distro/debian-wheezy.list | 3 +
>>>> meta-isar/conf/distro/raspbian-jessie.conf | 12 +-
>>>> meta-isar/conf/distro/raspbian-jessie.list | 1 +
>>>> meta-isar/conf/local.conf.sample | 4 +-
>>>> meta-isar/conf/multiconfig/qemuarm-jessie.conf | 2 +-
>>>> meta-isar/conf/multiconfig/qemuarm-wheezy.conf | 2 +-
>>>> meta-isar/conf/multiconfig/rpi-jessie.conf | 2 +-
>>>> .../recipes-core/images/files/download_dev-random | 24 ---
>>>> .../recipes-core/images/files/multistrap.conf.in | 38 ----
>>>> meta-isar/recipes-core/images/files/setup.sh | 77 --------
>>>> meta-isar/recipes-core/images/isar-image-base.bb | 64 +++----
>>>> meta/classes/image.bbclass | 2 +-
>>>> meta/classes/isar-bootstrap-helper.bbclass | 39 ++++
>>>> .../isar-bootstrap/files/isar-apt.conf | 2 +
>>>> meta/recipes-core/isar-bootstrap/isar-bootstrap.bb | 205
>>>> +++++++++++++++++++++
>>>> meta/recipes-devtools/buildchroot/buildchroot.bb | 59 ++----
>>>> meta/recipes-devtools/buildchroot/files/build.sh | 2 +-
>>>> .../buildchroot/files/configscript.sh | 10 -
>>>> .../buildchroot/files/multistrap.conf.in | 37 ----
>>>> meta/recipes-devtools/buildchroot/files/setup.sh | 82 ---------
>>>> 25 files changed, 310 insertions(+), 388 deletions(-)
>>>> create mode 100644 meta-isar/conf/distro/debian-jessie.list
>>>> create mode 100644 meta-isar/conf/distro/debian-stretch.list
>>>> create mode 100644 meta-isar/conf/distro/debian-wheezy.list
>>>> create mode 100644 meta-isar/conf/distro/raspbian-jessie.list
>>>> delete mode 100644
>>>> meta-isar/recipes-core/images/files/download_dev-random
>>>> delete mode 100644
>>>> meta-isar/recipes-core/images/files/multistrap.conf.in
>>>> delete mode 100755 meta-isar/recipes-core/images/files/setup.sh
>>>> create mode 100644 meta/classes/isar-bootstrap-helper.bbclass
>>>> create mode 100644
>>>> meta/recipes-core/isar-bootstrap/files/isar-apt.conf
>>>> create mode 100644 meta/recipes-core/isar-bootstrap/isar-bootstrap.bb
>>>> delete mode 100644
>>>> meta/recipes-devtools/buildchroot/files/multistrap.conf.in
>>>> delete mode 100755 meta/recipes-devtools/buildchroot/files/setup.sh
>>>>
>>>
>>> FWIW, I've successfully built all CI targets locally just now. No time
>>> to test the result, though.
>>
>> Images also run, and I was specifically able to build and run the next
>> branch of jailhouse-images with these patches applied. Looks very good!
>> And I also like "310 insertions(+), 388 deletions(-)" a lot. :)
>
> Great that you like it :) But some features would need to be implemented
> or fixed again, like changing mirrors and setting hostname. So there is
> some regression happening here unfortunately.
>
> Also, I because I was busy tackling and fixing the big issues, there
> might still be some regressions or left over code in some places. I
> would try looking at the configscripts for both isar-image-base and
> buildchroot. I am not sure if everything there is still required or if I
> accidental deleted something very important from the setup scripts. I
> don't think so, but I haven't written this code or encountered any
> issues it fixes.
>
> But all those issues should be reasonable straight forward to fix, and
> if someone or myself follow the suggestions I just posted, then the code
> reduction might still happen.
Alex, feel free to pick up this series. I thing it would be very
valuable for upcoming features like reproducible build or
cross-buildchroot to have this refactoring merged first. As Claudius
said, he is probably busy the next weeks with a more urgent topic.
Thanks,
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
prev parent reply other threads:[~2018-03-09 14:23 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-07 16:44 claudius.heine.ext
2018-03-07 16:44 ` [PATCH v4 1/5] implement isar-bootstrap using debootstrap claudius.heine.ext
2018-03-08 7:53 ` Claudius Heine
2018-03-14 8:56 ` Alexander Smirnov
2018-03-14 9:52 ` Claudius Heine
2018-03-14 10:38 ` Alexander Smirnov
2018-03-14 14:14 ` Claudius Heine
2018-03-14 14:25 ` Alexander Smirnov
2018-03-14 18:53 ` Jan Kiszka
2018-03-15 8:05 ` Claudius Heine
2018-03-15 8:58 ` Alexander Smirnov
2018-03-15 22:07 ` Claudius Heine
2018-03-16 5:49 ` Alexander Smirnov
2018-03-28 6:00 ` Jan Kiszka
2018-03-14 14:04 ` Alexander Smirnov
2018-03-14 14:26 ` Claudius Heine
2018-03-14 14:35 ` Alexander Smirnov
2018-03-14 16:13 ` Claudius Heine
2018-03-07 16:44 ` [PATCH v4 2/5] meta/isar-bootstrap-helper.bbclass: handle rfs customization centrally claudius.heine.ext
2018-03-07 16:44 ` [PATCH v4 3/5] meta/buildchroot: switch to using isar-bootstrap claudius.heine.ext
2018-03-08 8:18 ` Claudius Heine
2018-03-07 16:44 ` [PATCH v4 4/5] meta-isar/isar-image-base: " claudius.heine.ext
2018-03-07 16:44 ` [PATCH v4 5/5] meta-isar/multiconfig: remove multistrap references claudius.heine.ext
2018-03-07 19:51 ` [PATCH v4 0/5] Debootstrap integration Jan Kiszka
2018-03-08 6:06 ` Jan Kiszka
2018-03-08 8:14 ` Claudius Heine
2018-03-09 14:22 ` Jan Kiszka [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=bdd34c2c-a257-621a-13a7-345f4605a5b8@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=asmirnov@ilbers.de \
--cc=ch@denx.de \
--cc=claudius.heine.ext@siemens.com \
--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