From: Claudius Heine <ch@denx.de>
To: claudius.heine.ext@siemens.com, isar-users@googlegroups.com
Subject: Re: [PATCH 2/5] meta/isar-bootstrap-helper.bbclass: handle rfs customization centrally
Date: Thu, 22 Feb 2018 09:20:17 +0100 [thread overview]
Message-ID: <1519287617.2473.103.camel@denx.de> (raw)
In-Reply-To: <20180221115003.11163-3-claudius.heine.ext@siemens.com>
[-- Attachment #1: Type: text/plain, Size: 3064 bytes --]
On Wed, 2018-02-21 at 12:50 +0100, claudius.heine.ext@siemens.com
wrote:
> From: Claudius Heine <ch@denx.de>
>
> This patch introduces the 'isar-bootstrap-helper' bitbake class to
> support recipes that use the basic root file system created by
> isar-bootstrap.
>
> In this patch the function 'setup_root_file_system' is defined that
> allows to copy the root file system to the directory specified in the
> first parameter and installs additional packages specified by the
> next parameters. It also adds the local 'isar-apt' repo to the apt
> configuration and fetches its index.
>
> Signed-off-by: Claudius Heine <ch@denx.de>
> ---
> meta/classes/isar-bootstrap-helper.bbclass | 36
> ++++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 meta/classes/isar-bootstrap-helper.bbclass
>
> diff --git a/meta/classes/isar-bootstrap-helper.bbclass
> b/meta/classes/isar-bootstrap-helper.bbclass
> new file mode 100644
> index 0000000..49c81c1
> --- /dev/null
> +++ b/meta/classes/isar-bootstrap-helper.bbclass
> @@ -0,0 +1,36 @@
> +# Helper functions for using isar-bootstrap
> +#
> +# This software is a part of ISAR.
> +# Copyright (c) Siemens AG, 2018
> +#
> +# SPDX-License-Identifier: MIT
> +
> +setup_root_file_system() {
> + RFSDIR="$1"
For consistency sake, I'll rename this variable to ROOTFSDIR, the same
used in the isar-bootstrap recipe.
> + shift
> + PACKAGES="$@"
> +
> + sudo cp -Trpfx \
> + "${DEPLOY_DIR_IMAGE}/isar-bootstrap-${DISTRO}-
> ${DISTRO_ARCH}/" \
> + "$RFSDIR"
> +
> + echo "deb file:///isar-apt ${DEBDISTRONAME} main" | \
> + sudo tee "$RFSDIR/etc/apt/sources.list.d/isar-apt.list"
> >/dev/null
> +
> + sudo mount --bind ${DEPLOY_DIR_APT}/${DISTRO} $RFSDIR/isar-apt
> + sudo mount -t devtmpfs -o mode=0755,nosuid devtmpfs $RFSDIR/dev
> + sudo mount -t proc none $RFSDIR/proc
> +
> + # Install packages:
> + E="${@ bb.utils.export_proxies(d)}"
> + sudo -E chroot "$RFSDIR" /usr/bin/apt-get update \
> + -o Dir::Etc::sourcelist="sources.list.d/isar-apt.list" \
> + -o Dir::Etc::sourceparts="-" \
> + -o APT::Get::List-Cleanup="0"
> + sudo -E chroot "$RFSDIR" \
> + /usr/bin/apt-get install -y \
> + --allow-unauthenticated \
> + --no-install-recommends \
Should I instead of using '--no-install-recommends' put the following
in the apt configuration within the isar-bootstrap process?
APT::Install-Recommends "0" ;
APT::Install-Suggests "0" ;
regards,
Claudius
> + -o Debug::pkgProblemResolver=yes \
> + $PACKAGES
> +}
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de
PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153
Keyserver: hkp://pool.sks-keyservers.net
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-02-22 8:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-21 11:49 [PATCH 0/5] Debootstrap integration claudius.heine.ext
2018-02-21 11:49 ` [PATCH 1/5] implement isar-bootstrap using debootstrap claudius.heine.ext
2018-02-22 8:11 ` Claudius Heine
2018-02-21 11:50 ` [PATCH 2/5] meta/isar-bootstrap-helper.bbclass: handle rfs customization centrally claudius.heine.ext
2018-02-22 8:20 ` Claudius Heine [this message]
2018-02-21 11:50 ` [PATCH 3/5] meta/buildchroot: switch to using isar-bootstrap claudius.heine.ext
2018-02-21 11:50 ` [PATCH 4/5] meta-isar/isar-image-base: " claudius.heine.ext
2018-02-21 11:50 ` [PATCH 5/5] meta-isar/multiconfig: remove multistrap references claudius.heine.ext
2018-02-21 17:37 ` [PATCH 0/5] Debootstrap integration Jan Kiszka
2018-02-21 21:38 ` Claudius Heine
2018-02-22 8:20 ` Alexander Smirnov
2018-02-22 10:20 ` Claudius Heine
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=1519287617.2473.103.camel@denx.de \
--to=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